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

Issue 1314863003: [heap] More flag cleanup. (Closed)

Created:
5 years, 4 months ago by Michael Lippautz
Modified:
5 years, 3 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

[heap] GC flag cleanup/restructuring. * GC's flags are now proper flags and not int. * Callback flags are not threaded through but only set once like gc flags * Callers of methods that trigger GCs need to pass a reason when not using the default parameters. Furthermore, each GC invocation can be passed the GC and GCCallback flags. We usually override the currently set flags upon finishing a GC cylce, but are able to restore the previously set if desired. This is useful for explicitely triggered scavenges or external requests that interrupt the current behaviour. BUG= Committed: https://crrev.com/f4f3b431b9ce0778d926acf03c0d36dae5c0cba4 Cr-Commit-Position: refs/heads/master@{#30457}

Patch Set 1 #

Patch Set 2 : API changes and unification #

Patch Set 3 : Fix compilation and add const to parameters #

Total comments: 2

Patch Set 4 : addressed comment + rebase #

Patch Set 5 : Fix flag override by adding a scope #

Patch Set 6 : Remove unused DCHECK #

Patch Set 7 : Remove unnecessary parameter. #

Total comments: 2

Patch Set 8 : Added more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -194 lines) Patch
M src/api.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/debug/debug.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M src/extensions/statistics-extension.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -8 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 6 7 9 chunks +68 lines, -26 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 16 chunks +31 lines, -32 lines 0 comments Download
M src/heap/heap-inl.h View 1 2 3 4 5 6 7 3 chunks +41 lines, -30 lines 0 comments Download
M src/heap/memory-reducer.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/log.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 22 chunks +37 lines, -33 lines 0 comments Download
M test/cctest/test-debug.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -4 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 6 7 21 chunks +33 lines, -32 lines 0 comments Download
M test/cctest/test-log.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-mementos.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-object-observe.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-weakmaps.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/test-weaksets.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
Michael Lippautz
More invasive than planned. The idea is that as soon as you call the GC ...
5 years, 4 months ago (2015-08-25 14:25:13 UTC) #2
Hannes Payer (out of office)
lgtm https://codereview.chromium.org/1314863003/diff/40001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1314863003/diff/40001/src/heap/heap.cc#newcode825 src/heap/heap.cc:825: Heap::kMakeHeapIterableMask | Heap::kReduceMemoryFootprintMask, Let's rename this instance to ...
5 years, 4 months ago (2015-08-25 16:55:22 UTC) #3
Michael Lippautz
+yang for debug/* https://codereview.chromium.org/1314863003/diff/40001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1314863003/diff/40001/src/heap/heap.cc#newcode825 src/heap/heap.cc:825: Heap::kMakeHeapIterableMask | Heap::kReduceMemoryFootprintMask, On 2015/08/25 16:55:22, ...
5 years, 4 months ago (2015-08-25 17:13:49 UTC) #5
Yang
On 2015/08/25 17:13:49, Michael Lippautz wrote: > +yang for debug/* > > https://codereview.chromium.org/1314863003/diff/40001/src/heap/heap.cc > File ...
5 years, 3 months ago (2015-08-26 10:20:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314863003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314863003/60001
5 years, 3 months ago (2015-08-26 10:25:26 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/3687)
5 years, 3 months ago (2015-08-26 10:35:15 UTC) #11
Michael Lippautz
Hannes PTAL; It's more invasive than initially planned. The current CL addresses all the issues ...
5 years, 3 months ago (2015-08-26 11:51:25 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314863003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314863003/120001
5 years, 3 months ago (2015-08-26 12:45:45 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-26 13:12:03 UTC) #16
Hannes Payer (out of office)
I am a bit worried about the complexity of the current approach. In principle, we ...
5 years, 3 months ago (2015-08-26 21:57:28 UTC) #17
Hannes Payer (out of office)
I am not a big fan of the involved complexity, but the alternatives are also ...
5 years, 3 months ago (2015-08-27 12:41:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314863003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314863003/140001
5 years, 3 months ago (2015-08-31 07:32:35 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-08-31 07:58:47 UTC) #22
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/f4f3b431b9ce0778d926acf03c0d36dae5c0cba4 Cr-Commit-Position: refs/heads/master@{#30457}
5 years, 3 months ago (2015-08-31 07:59:07 UTC) #23
Michael Hablich
5 years, 3 months ago (2015-08-31 10:23:07 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1303393004/ by hablich@chromium.org.

The reason for reverting is: Breaks
http://build.chromium.org/p/client.v8/builders/V8%20Arm%20-%20debug%20-%202/b....

Powered by Google App Engine
This is Rietveld 408576698