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

Issue 11415203: Introduce callback for resolving global object name while taking heap snapshot (Closed)

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

Description

Introduce callback for resolving global object name while taking heap snapshot Heap profiler currently gets "document" of global objects while taking snapshot (to later retrieve its "URL"). This is unsafe as there may be no current v8 context when the property is requested while corresponding property accessor may make some assumptions about the context stack during its invokation. Several crashes were reported due to this problem: https://bugs.webkit.org/show_bug.cgi?id=103076 https://crbug.com/162121 https://crbug.com/132727 This patch adds a callback for resolving global object names and avoid the crashes. Committed: https://code.google.com/p/v8/source/detail?r=13137

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -53 lines) Patch
M include/v8-profiler.h View 1 chunk +16 lines, -1 line 0 comments Download
M src/api.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/heap-profiler.h View 2 chunks +20 lines, -12 lines 0 comments Download
M src/heap-profiler.cc View 3 chunks +27 lines, -16 lines 0 comments Download
M src/profile-generator.h View 3 chunks +5 lines, -2 lines 0 comments Download
M src/profile-generator.cc View 1 3 chunks +33 lines, -20 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
yurys
8 years ago (2012-11-29 17:24:27 UTC) #1
yurys
8 years ago (2012-11-30 20:38:36 UTC) #2
alph
lgtm https://codereview.chromium.org/11415203/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/11415203/diff/1/src/api.cc#newcode6612 src/api.cc:6612: You've lost an empty line. https://codereview.chromium.org/11415203/diff/1/src/profile-generator.cc File src/profile-generator.cc ...
8 years ago (2012-12-03 18:31:15 UTC) #3
yurys
https://codereview.chromium.org/11415203/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/11415203/diff/1/src/api.cc#newcode6612 src/api.cc:6612: On 2012/12/03 18:31:15, alph wrote: > You've lost an ...
8 years ago (2012-12-03 18:36:05 UTC) #4
Michael Starzinger
8 years ago (2012-12-04 10:40:34 UTC) #5
LGTM.

Powered by Google App Engine
This is Rietveld 408576698