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 824513004: ASSERT that Visitor::mark is only called when inGC() (Closed)

Created:
5 years, 11 months ago by kouhei (in TOK)
Modified:
5 years, 11 months ago
CC:
aandrey+blink_chromium.org, Mads Ager (chromium), blink-reviews, blink-reviews-wtf_chromium.org, haraken, kouhei+heap_chromium.org, Mikhail, oilpan-reviews
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

ASSERT that Visitor::mark is only called when inGC() This CL adds an ASSERT to check that Visitor::mark is only called when all threads are parked and the gc state is at ThreadState::inGC(). The current exception to this is ephemeron weak processing, where it call trace() to see if an element is dead. This should be refactored in future so that it would check without calling trace(), but it is left as an exception as of now. BUG=210454 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188420

Patch Set 1 #

Total comments: 6

Patch Set 2 : haraken #

Total comments: 4

Patch Set 3 : m_visitor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -1 line) Patch
M Source/platform/heap/Heap.cpp View 1 2 chunks +17 lines, -0 lines 0 comments Download
M Source/platform/heap/InlinedGlobalMarkingVisitor.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M Source/platform/heap/Visitor.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M Source/wtf/HashTable.h View 1 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 16 (6 generated)
kouhei (in TOK)
5 years, 11 months ago (2015-01-13 06:29:27 UTC) #2
haraken
https://codereview.chromium.org/824513004/diff/1/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/824513004/diff/1/Source/platform/heap/Heap.cpp#newcode2031 Source/platform/heap/Heap.cpp:2031: virtual void checkIsMarkingAllowed() override It sounds inconsistent to have ...
5 years, 11 months ago (2015-01-13 07:55:54 UTC) #4
kouhei (in TOK)
https://codereview.chromium.org/824513004/diff/1/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/824513004/diff/1/Source/platform/heap/Heap.cpp#newcode2031 Source/platform/heap/Heap.cpp:2031: virtual void checkIsMarkingAllowed() override On 2015/01/13 07:55:53, haraken wrote: ...
5 years, 11 months ago (2015-01-14 02:10:05 UTC) #5
haraken
LGTM https://codereview.chromium.org/824513004/diff/20001/Source/platform/heap/InlinedGlobalMarkingVisitor.h File Source/platform/heap/InlinedGlobalMarkingVisitor.h (right): https://codereview.chromium.org/824513004/diff/20001/Source/platform/heap/InlinedGlobalMarkingVisitor.h#newcode84 Source/platform/heap/InlinedGlobalMarkingVisitor.h:84: inline void checkMarkingAllowed() { getUninlined()->checkMarkingAllowed(); } getUninlined() => ...
5 years, 11 months ago (2015-01-14 02:50:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/824513004/40001
5 years, 11 months ago (2015-01-14 02:59:50 UTC) #8
kouhei (in TOK)
https://codereview.chromium.org/824513004/diff/20001/Source/platform/heap/InlinedGlobalMarkingVisitor.h File Source/platform/heap/InlinedGlobalMarkingVisitor.h (right): https://codereview.chromium.org/824513004/diff/20001/Source/platform/heap/InlinedGlobalMarkingVisitor.h#newcode84 Source/platform/heap/InlinedGlobalMarkingVisitor.h:84: inline void checkMarkingAllowed() { getUninlined()->checkMarkingAllowed(); } On 2015/01/14 02:50:42, ...
5 years, 11 months ago (2015-01-14 03:00:56 UTC) #10
kouhei (in TOK)
jochen: Would you review wtf/ changes? Thanks
5 years, 11 months ago (2015-01-14 03:01:18 UTC) #12
jochen (gone - plz use gerrit)
lgtm
5 years, 11 months ago (2015-01-14 13:21:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/824513004/40001
5 years, 11 months ago (2015-01-14 23:07:59 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 23:11:26 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188420

Powered by Google App Engine
This is Rietveld 408576698