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

Issue 1846723002: Gracefully handle unloaded scripts (Closed)

Created:
4 years, 8 months ago by mattloring
Modified:
4 years, 8 months ago
Reviewers:
ofrobots, alph, Yang
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Gracefully handle unloaded scripts If a script is unloaded between the collection of an allocation and the tranlation of an allocation profile, the profiler will segfault. With this change, we report unloaded scripts as having no line number,column number, or name. R=ofrobots@google.com BUG= Committed: https://crrev.com/607143d4603a2d211b87952b939de738a07b60d7 Cr-Commit-Position: refs/heads/master@{#35147}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use find and inline script #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M src/profiler/sampling-heap-profiler.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 18 (7 generated)
mattloring
4 years, 8 months ago (2016-03-30 21:39:26 UTC) #1
ofrobots
https://codereview.chromium.org/1846723002/diff/1/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1846723002/diff/1/src/profiler/sampling-heap-profiler.cc#newcode204 src/profiler/sampling-heap-profiler.cc:204: scripts.count(node->script_id_)) { Why use map::count? map::find would be more ...
4 years, 8 months ago (2016-03-30 22:35:35 UTC) #2
mattloring
https://codereview.chromium.org/1846723002/diff/1/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1846723002/diff/1/src/profiler/sampling-heap-profiler.cc#newcode204 src/profiler/sampling-heap-profiler.cc:204: scripts.count(node->script_id_)) { On 2016/03/30 22:35:35, ofrobots wrote: > Why ...
4 years, 8 months ago (2016-03-30 23:55:09 UTC) #3
ofrobots
On 2016/03/30 23:56:34, ofrobots wrote: > mailto:ofrobots@google.com changed reviewers: > + mailto:alph@chromium.org, mailto:yangguo@chromium.org lgtm from ...
4 years, 8 months ago (2016-03-30 23:56:45 UTC) #6
Yang
lgtm.
4 years, 8 months ago (2016-03-31 05:12:56 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846723002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846723002/20001
4 years, 8 months ago (2016-03-31 06:04:04 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-31 06:31:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846723002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846723002/20001
4 years, 8 months ago (2016-03-31 06:33:48 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-03-31 06:36:12 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/607143d4603a2d211b87952b939de738a07b60d7 Cr-Commit-Position: refs/heads/master@{#35147}
4 years, 8 months ago (2016-03-31 06:36:43 UTC) #17
ofrobots
4 years, 8 months ago (2016-03-31 17:09:44 UTC) #18
Message was sent while issue was closed.
On 2016/03/31 06:36:43, commit-bot: I haz the power wrote:
> Patchset 2 (id:??) landed as
> https://crrev.com/607143d4603a2d211b87952b939de738a07b60d7
> Cr-Commit-Position: refs/heads/master@{#35147}

It seems that this issue was fixed twice concurrently. alph@ also fixed this
issue recently here: https://codereview.chromium.org/1826953003/

One of these changes should be rolled back, but the test case from this issue
should be preserved.

Powered by Google App Engine
This is Rietveld 408576698