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

Issue 1301183002: [heap] Cleanup and fix GC flags / add testing infra (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

[heap] Cleanup and fix GC flags GC flags are now part of the {Heap} and should be respected by all sub-components. Also add a infrastructure to write tests accessing private methods. Committed: https://crrev.com/a56f537381ddfb8f89394880e1f0fa63a17cd510 Cr-Commit-Position: refs/heads/master@{#30281}

Patch Set 1 #

Patch Set 2 : Added infra to write tests accessing private methods and add a test #

Patch Set 3 : Remove debugging lines #

Total comments: 15

Patch Set 4 : Addressed comments #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : Addressed comment #

Total comments: 7

Patch Set 7 : Addressed Hannes' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -53 lines) Patch
M src/heap/heap.h View 1 2 3 4 5 6 3 chunks +26 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 7 chunks +9 lines, -13 lines 0 comments Download
M src/heap/incremental-marking.h View 1 chunk +1 line, -1 line 0 comments Download
M src/heap/incremental-marking.cc View 2 2 chunks +2 lines, -3 lines 0 comments Download
M src/heap/mark-compact.h View 3 chunks +0 lines, -15 lines 0 comments Download
M src/heap/mark-compact.cc View 1 2 3 4 chunks +3 lines, -6 lines 0 comments Download
M src/heap/mark-compact-inl.h View 1 chunk +0 lines, -11 lines 0 comments Download
M test/cctest/test-debug.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 3 chunks +57 lines, -1 line 0 comments Download

Messages

Total messages: 17 (3 generated)
Michael Lippautz
Hannes: The change we talked about. This is pre-work for fixing chromium:520607. Benedikt and Michi: ...
5 years, 4 months ago (2015-08-20 13:06:29 UTC) #1
Michael Lippautz
See previous message :)
5 years, 4 months ago (2015-08-20 13:07:26 UTC) #3
Michael Starzinger
Looking good. I like it. https://codereview.chromium.org/1301183002/diff/40001/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1301183002/diff/40001/src/heap/heap.h#newcode28 src/heap/heap.h:28: class HeapTester; nit: No ...
5 years, 4 months ago (2015-08-20 13:33:37 UTC) #4
Michael Lippautz
https://codereview.chromium.org/1301183002/diff/40001/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1301183002/diff/40001/src/heap/heap.h#newcode28 src/heap/heap.h:28: class HeapTester; On 2015/08/20 13:33:37, Michael Starzinger wrote: > ...
5 years, 4 months ago (2015-08-20 15:46:29 UTC) #5
Michael Starzinger
LGTM from my end. https://codereview.chromium.org/1301183002/diff/40001/src/heap/incremental-marking.cc File src/heap/incremental-marking.cc (right): https://codereview.chromium.org/1301183002/diff/40001/src/heap/incremental-marking.cc#newcode490 src/heap/incremental-marking.cc:490: StartMarking(); On 2015/08/20 15:46:28, Michael ...
5 years, 4 months ago (2015-08-20 15:52:04 UTC) #6
Michael Lippautz
https://codereview.chromium.org/1301183002/diff/80001/test/cctest/test-heap.cc File test/cctest/test-heap.cc (right): https://codereview.chromium.org/1301183002/diff/80001/test/cctest/test-heap.cc#newcode2814 test/cctest/test-heap.cc:2814: CHECK_EQ(true, heap->current_gc_flags() & Heap::kReduceMemoryFootprintMask); On 2015/08/20 15:52:03, Michael Starzinger ...
5 years, 4 months ago (2015-08-20 16:15:05 UTC) #7
Hannes Payer (out of office)
lgtm, nits attached https://codereview.chromium.org/1301183002/diff/100001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1301183002/diff/100001/src/heap/heap.cc#newcode797 src/heap/heap.cc:797: void Heap::CollectAllGarbage(int flags, const char* gc_reason, ...
5 years, 4 months ago (2015-08-20 16:28:30 UTC) #8
Michael Starzinger
https://codereview.chromium.org/1301183002/diff/100001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1301183002/diff/100001/src/heap/heap.cc#newcode797 src/heap/heap.cc:797: void Heap::CollectAllGarbage(int flags, const char* gc_reason, On 2015/08/20 16:28:29, ...
5 years, 4 months ago (2015-08-20 16:43:05 UTC) #9
Michael Lippautz
https://codereview.chromium.org/1301183002/diff/100001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/1301183002/diff/100001/src/heap/heap.cc#newcode797 src/heap/heap.cc:797: void Heap::CollectAllGarbage(int flags, const char* gc_reason, On 2015/08/20 16:28:29, ...
5 years, 4 months ago (2015-08-20 17:02:19 UTC) #10
Benedikt Meurer
LGTM. One question: While we are changing the heap testing stuff, can we migrate the ...
5 years, 4 months ago (2015-08-21 05:26:43 UTC) #11
Michael Lippautz
On 2015/08/21 05:26:43, Benedikt Meurer wrote: > LGTM. > > One question: While we are ...
5 years, 4 months ago (2015-08-21 06:43:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1301183002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1301183002/120001
5 years, 4 months ago (2015-08-21 06:43:44 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 4 months ago (2015-08-21 07:09:15 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-21 07:09:25 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a56f537381ddfb8f89394880e1f0fa63a17cd510
Cr-Commit-Position: refs/heads/master@{#30281}

Powered by Google App Engine
This is Rietveld 408576698