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

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

Created:
5 years ago by mvstanton
Modified:
5 years ago
Reviewers:
*ulan, *Michael Starzinger
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

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. BUG= Committed: https://crrev.com/20a8162f081215706310ea3c943dbd69ac670aeb Cr-Commit-Position: refs/heads/master@{#32567}

Patch Set 1 : Additional fixes. #

Patch Set 2 : Patch One. #

Total comments: 12

Patch Set 3 : Code comments. #

Patch Set 4 : Bugfix. #

Patch Set 5 : Facepalm. #

Total comments: 1

Patch Set 6 : REBASE. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -150 lines) Patch
M src/code-stubs-hydrogen.cc View 1 2 3 4 5 2 chunks +14 lines, -2 lines 0 comments Download
M src/contexts.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/deoptimizer.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap/gc-tracer.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/heap/gc-tracer.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 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 5 2 chunks +0 lines, -73 lines 0 comments Download
M src/heap/objects-visiting.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M src/heap/objects-visiting-inl.h View 1 2 3 4 5 2 chunks +0 lines, -25 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 9 chunks +83 lines, -37 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 18 (9 generated)
mvstanton
Hi Ulan, hi Michael, PTAL, thanks! --Mike S.
5 years ago (2015-11-26 14:54:47 UTC) #6
ulan
Looking good! https://codereview.chromium.org/1478943003/diff/60001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1478943003/diff/60001/src/objects.cc#newcode11440 src/objects.cc:11440: SKIP_WRITE_BARRIER); Either 1) keep the write barrier ...
5 years ago (2015-11-27 10:03:18 UTC) #7
Michael Starzinger
https://codereview.chromium.org/1478943003/diff/60001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/1478943003/diff/60001/src/flag-definitions.h#newcode387 src/flag-definitions.h:387: DEFINE_BOOL(flush_optimized_code_cache, false, I assume this is only for the ...
5 years ago (2015-11-27 10:06:40 UTC) #8
mvstanton
Hi Michi, hi Ulan, Comments addressed, thanks! --Mike https://codereview.chromium.org/1478943003/diff/60001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/1478943003/diff/60001/src/flag-definitions.h#newcode387 src/flag-definitions.h:387: DEFINE_BOOL(flush_optimized_code_cache, ...
5 years ago (2015-12-01 11:28:16 UTC) #9
Michael Starzinger
LGTM. https://codereview.chromium.org/1478943003/diff/120001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1478943003/diff/120001/src/objects.cc#newcode11462 src/objects.cc:11462: DCHECK(entry < kEntriesStart); nit: DCHECK_LT
5 years ago (2015-12-01 12:36:10 UTC) #10
ulan
LGTM
5 years ago (2015-12-01 12:53:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1478943003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1478943003/140001
5 years ago (2015-12-03 14:20:05 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years ago (2015-12-03 14:57:22 UTC) #16
commit-bot: I haz the power
5 years ago (2015-12-03 14:57:58 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/20a8162f081215706310ea3c943dbd69ac670aeb
Cr-Commit-Position: refs/heads/master@{#32567}

Powered by Google App Engine
This is Rietveld 408576698