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

Issue 1273483002: GC: Refactor public incremental marking interface in heap (Closed)

Created:
5 years, 4 months ago by Michael Lippautz
Modified:
5 years, 4 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

GC: Refactor incremental marking interface from heap BUG= Committed: https://crrev.com/c9fcaeb336919ce4b76fded8c8059457e9820250 Cr-Commit-Position: refs/heads/master@{#30009}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comment #

Patch Set 3 : Replace static const field with regular static method #

Patch Set 4 : Add reason parameter to StartIncrementalMarking #

Total comments: 6

Patch Set 5 : Addressed hpayer's comments #

Total comments: 2

Patch Set 6 : Addressed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -18 lines) Patch
M src/heap/heap.h View 1 2 3 4 2 chunks +15 lines, -4 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 5 chunks +28 lines, -10 lines 0 comments Download
M src/heap/incremental-marking.h View 1 2 3 4 chunks +22 lines, -1 line 0 comments Download
M src/heap/incremental-marking.cc View 1 2 3 4 4 chunks +14 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Michael Lippautz
The idea is to then call Heap::StartIncrementalMarking and Heap::AdvanceIncrementalMarking from api.cc and not loose any ...
5 years, 4 months ago (2015-08-04 12:57:16 UTC) #2
ulan
lgtm https://codereview.chromium.org/1273483002/diff/1/src/heap/incremental-marking.h File src/heap/incremental-marking.h (right): https://codereview.chromium.org/1273483002/diff/1/src/heap/incremental-marking.h#newcode31 src/heap/incremental-marking.h:31: CompletionAction complete_action_ = NO_GC_VIA_STACK_GUARD, For readability of the ...
5 years, 4 months ago (2015-08-04 13:13:31 UTC) #3
Michael Lippautz
https://codereview.chromium.org/1273483002/diff/1/src/heap/incremental-marking.h File src/heap/incremental-marking.h (right): https://codereview.chromium.org/1273483002/diff/1/src/heap/incremental-marking.h#newcode31 src/heap/incremental-marking.h:31: CompletionAction complete_action_ = NO_GC_VIA_STACK_GUARD, On 2015/08/04 13:13:31, ulan wrote: ...
5 years, 4 months ago (2015-08-04 13:55:35 UTC) #4
ulan
lgtm
5 years, 4 months ago (2015-08-04 14:33:06 UTC) #5
Hannes Payer (out of office)
https://codereview.chromium.org/1273483002/diff/60001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1273483002/diff/60001/src/heap/heap.cc#newcode4806 src/heap/heap.cc:4806: GCIdleTimeHandler::HeapState heap_state = ComputeHeapState(); You don't need the heap_state ...
5 years, 4 months ago (2015-08-04 15:05:59 UTC) #6
Michael Lippautz
https://codereview.chromium.org/1273483002/diff/60001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1273483002/diff/60001/src/heap/heap.cc#newcode4806 src/heap/heap.cc:4806: GCIdleTimeHandler::HeapState heap_state = ComputeHeapState(); On 2015/08/04 15:05:59, Hannes Payer ...
5 years, 4 months ago (2015-08-04 15:53:06 UTC) #7
Hannes Payer (out of office)
lgtm, one nit https://codereview.chromium.org/1273483002/diff/80001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1273483002/diff/80001/src/heap/heap.cc#newcode983 src/heap/heap.cc:983: incremental_marking()->Start(kNoGCFlags, kNoGCCallbackFlags, "full GC"); GC epilogue
5 years, 4 months ago (2015-08-04 16:21:52 UTC) #8
Michael Lippautz
https://codereview.chromium.org/1273483002/diff/80001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1273483002/diff/80001/src/heap/heap.cc#newcode983 src/heap/heap.cc:983: incremental_marking()->Start(kNoGCFlags, kNoGCCallbackFlags, "full GC"); On 2015/08/04 16:21:52, Hannes Payer ...
5 years, 4 months ago (2015-08-04 16:26:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1273483002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1273483002/100001
5 years, 4 months ago (2015-08-04 16:26:37 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 4 months ago (2015-08-04 16:56:34 UTC) #13
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/c9fcaeb336919ce4b76fded8c8059457e9820250 Cr-Commit-Position: refs/heads/master@{#30009}
5 years, 4 months ago (2015-08-04 16:57:21 UTC) #14
adamk
5 years, 4 months ago (2015-08-04 17:47:14 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1271823006/ by adamk@chromium.org.

The reason for reverting is: Fails on the MSAN builder:

http://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20arm64%20-%20s...

Likely due to lack of initialization of IncrementalMarking::gc_callback_flags_..

Powered by Google App Engine
This is Rietveld 408576698