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

Issue 95283003: Do not put allocated block into HeapObjectsMap (Closed)

Created:
7 years ago by yurys
Modified:
7 years ago
CC:
v8-dev
Visibility:
Public.

Description

Do not put allocated block into HeapObjectsMap Heap allocation reported to AllocationTracker may be later divided into several objects so it is incorrect to put the block as a new HeapObject into the map. We will match allocated block with actual HeapObjects later when iterating Heap (will be addressed in another patch). Since the objects are not assigned an id immediately after creation we need to call FindOrAddEntry when finding id for SharedFunctionInfo during stack crawling. Removed hooks for tracking creation of AllocationMemento. AllocationMemento is not a HeapObject and should be considered as implementation overhead. Renamed NewObjectEvent to AllocationEvent which is more precise in case of folded allocations and when a part of the new block becomes AllocationMemento. BUG=None LOG=N R=loislo@chromium.org, mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18151

Patch Set 1 #

Patch Set 2 : Renamed NewObjectEvent #

Patch Set 3 : Renamed NewObjectEvent #

Patch Set 4 : Reupload #

Patch Set 5 : Reupload2 #

Patch Set 6 : Reupload take 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -58 lines) Patch
M src/allocation-tracker.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/allocation-tracker.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/builtins.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M src/heap.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M src/heap-inl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/heap-profiler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/heap-profiler.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap-snapshot-generator.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 chunks +2 lines, -15 lines 0 comments Download
M src/serialize.h View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-heap-profiler.cc View 2 chunks +33 lines, -20 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
yurys
7 years ago (2013-11-28 15:59:51 UTC) #1
loislo
lgtm
7 years ago (2013-11-28 16:17:35 UTC) #2
Michael Starzinger
LGTM (I only looked at the code outside the heap profiler).
7 years ago (2013-11-28 16:55:55 UTC) #3
yurys
7 years ago (2013-11-29 09:54:49 UTC) #4
Message was sent while issue was closed.
Committed patchset #6 manually as r18151 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698