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

Issue 1735733002: Fix iterator (std::vector) invalidation during sampling heap profile retrieval (Closed)

Created:
4 years, 10 months ago by mattloring
Modified:
4 years, 10 months ago
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

Fix iterator (std::vector) invalidation during sampling heap profile retrieval It is possible for JS objects to be allocated while we are retrieving the profile. These JS objects can in turn end up getting sampled by the profiler. Adding these to the profile data structures invalidates the iterators that are presently in flight. This change prevents such concurrent modifications from affecting the retrieve operation. BUG= Committed: https://crrev.com/7bc1577a0bb33a1e8a4c3b4b099d923a24f528b0 Cr-Commit-Position: refs/heads/master@{#34298}

Patch Set 1 #

Patch Set 2 : Remove unncessary preallocation of nodes (deque) #

Patch Set 3 : Add Reviewers #

Total comments: 1

Patch Set 4 : Clarifying comment #

Patch Set 5 : Fix windows build (signed/unsigned compare) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M src/profiler/sampling-heap-profiler.cc View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M test/cctest/cctest.status View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
ofrobots
On 2016/02/24 22:45:27, ofrobots wrote: > mailto:ofrobots@google.com changed reviewers: > + mailto:machenbach@chromium.org > - mailto:hpayer@chromium.org ...
4 years, 10 months ago (2016-02-24 22:47:14 UTC) #6
ofrobots
On 2016/02/24 22:50:52, ofrobots wrote: > mailto:ofrobots@google.com changed reviewers: > + mailto:alph@chromium.org lgtm.
4 years, 10 months ago (2016-02-25 00:03:12 UTC) #9
alph
lgtm https://codereview.chromium.org/1735733002/diff/40001/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1735733002/diff/40001/src/profiler/sampling-heap-profiler.cc#newcode227 src/profiler/sampling-heap-profiler.cc:227: for (int i = 0; i < child_len; ...
4 years, 10 months ago (2016-02-25 00:49:16 UTC) #10
ulan
lgtm, good catch
4 years, 10 months ago (2016-02-25 08:35:01 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1735733002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1735733002/60001
4 years, 10 months ago (2016-02-25 15:05:29 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_rel_ng/builds/3342)
4 years, 10 months ago (2016-02-25 15:09:30 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1735733002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1735733002/80001
4 years, 10 months ago (2016-02-25 15:22:50 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-25 15:49:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1735733002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1735733002/80001
4 years, 10 months ago (2016-02-25 15:50:07 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-25 16:07:52 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-25 16:09:05 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7bc1577a0bb33a1e8a4c3b4b099d923a24f528b0
Cr-Commit-Position: refs/heads/master@{#34298}

Powered by Google App Engine
This is Rietveld 408576698