Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(912)

Issue 2780773002: [heap] Two minor fixes in EstimatedSize (Closed)

Created:
3 years, 8 months ago by Dan Ehrenberg
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] Two minor fixes in EstimatedSize A couple bugs had led code in one Context to be able to lead to estimated memory usage in another Context, even in cases that should be easy to detect. - Ensure that the pointer to the next context is nulled out while recursing over the portion of the heap. It seems like there was previously some code to do this partway, but the nulling part was left out. - Skip including maps in the understanding of the Context estimated size, as the maps are shared between Contexts and may be reachable from other Contexts Review-Url: https://codereview.chromium.org/2780773002 Cr-Commit-Position: refs/heads/master@{#44208} Committed: https://chromium.googlesource.com/v8/v8/+/76e3fe97d6ceb77cb113610670aa92fc0c0e82d6

Patch Set 1 #

Patch Set 2 : Remove unused variables #

Total comments: 2

Patch Set 3 : Skip objects which have a different receiver context, rather than skipping maps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M src/context-measure.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M test/cctest/heap/test-heap.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
Dan Ehrenberg
Yang, do you remember where the constant in EstimatedContextSize came from for the minimum? I ...
3 years, 8 months ago (2017-03-28 11:59:16 UTC) #10
Yang
I'm surprised this is actually being used. Chrome doesn't seem to. Can you tell me ...
3 years, 8 months ago (2017-03-28 12:11:36 UTC) #11
Dan Ehrenberg
Yeah, I don't see it used in Chromium or Node anywhere. What was the motivation ...
3 years, 8 months ago (2017-03-28 16:51:06 UTC) #12
Yang
On 2017/03/28 16:51:06, Dan Ehrenberg wrote: > Yeah, I don't see it used in Chromium ...
3 years, 8 months ago (2017-03-28 17:22:37 UTC) #13
Dan Ehrenberg
Yeah, this leaves a lot out still. Lots of memory is not credited to any ...
3 years, 8 months ago (2017-03-28 18:32:49 UTC) #14
Yang
SGTM. Jochen, I remember implementing this because you needed it for something. Given that Chrome ...
3 years, 8 months ago (2017-03-28 19:06:07 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2780773002/40001
3 years, 8 months ago (2017-03-28 20:06:40 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 20:41:19 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/76e3fe97d6ceb77cb113610670aa92fc0c0...

Powered by Google App Engine
This is Rietveld 408576698