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

Issue 1508703002: Use WeakCells in the optimized code map rather than traversing in pause. (Closed)

Created:
5 years ago by mvstanton
Modified:
5 years ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Use WeakCells in the optimized code map rather than traversing in pause. It's expensive to walk all shared function infos during the gc atomic pause. Instead, use WeakCells to implement this structure without manual clearing. Reland due to a bug when reusing entries in the optimized code map. BUG= Committed: https://crrev.com/e56fe8460ade6208b878bf95b3a5a1298cf4ccea Cr-Commit-Position: refs/heads/master@{#32696}

Patch Set 1 #

Patch Set 2 : Bugfix and test for it. #

Patch Set 3 : REBASE. #

Total comments: 2

Patch Set 4 : REBASE plus comment response. #

Patch Set 5 : REBASE (again). #

Patch Set 6 : Fixed nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -162 lines) Patch
M src/code-stubs-hydrogen.cc View 2 chunks +14 lines, -2 lines 0 comments Download
M src/contexts.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/deoptimizer.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap/gc-tracer.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M src/heap/gc-tracer.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/heap/mark-compact.h View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M src/heap/mark-compact.cc View 1 2 3 4 2 chunks +0 lines, -73 lines 0 comments Download
M src/heap/objects-visiting.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M src/heap/objects-visiting-inl.h View 1 2 3 4 2 chunks +0 lines, -25 lines 0 comments Download
M src/objects.cc View 1 2 3 4 9 chunks +87 lines, -49 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 1 chunk +109 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
mvstanton
Hi Michi, hi Ulan, Here is the reland of WeakCells in the optimized code map ...
5 years ago (2015-12-07 15:19:20 UTC) #3
Michael Starzinger
LGTM (rubber-stamped).
5 years ago (2015-12-07 17:29:09 UTC) #4
ulan
lgtm https://codereview.chromium.org/1508703002/diff/40001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1508703002/diff/40001/src/objects.cc#newcode12006 src/objects.cc:12006: if (old_code_map != *new_code_map) { Since we are ...
5 years ago (2015-12-08 08:47:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1508703002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1508703002/60001
5 years ago (2015-12-08 10:27:38 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/11102)
5 years ago (2015-12-08 11:49:50 UTC) #10
mvstanton
Thanks guys! https://codereview.chromium.org/1508703002/diff/40001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1508703002/diff/40001/src/objects.cc#newcode12006 src/objects.cc:12006: if (old_code_map != *new_code_map) { On 2015/12/08 ...
5 years ago (2015-12-08 16:40:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1508703002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1508703002/60001
5 years ago (2015-12-08 16:40:32 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm_rel/builds/11175)
5 years ago (2015-12-08 20:30:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1508703002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1508703002/60001
5 years ago (2015-12-09 07:28:48 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/8694)
5 years ago (2015-12-09 07:30:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1508703002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1508703002/100001
5 years ago (2015-12-09 08:19:28 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-09 08:54:57 UTC) #24
commit-bot: I haz the power
5 years ago (2015-12-09 08:55:43 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e56fe8460ade6208b878bf95b3a5a1298cf4ccea
Cr-Commit-Position: refs/heads/master@{#32696}

Powered by Google App Engine
This is Rietveld 408576698