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

Issue 8519002: Start incremental marking on idle notification. (Closed)

Created:
9 years, 1 month ago by ulan
Modified:
9 years ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Start incremental marking on idle notification. BUG=v8:1458 TEST=cctest/test-api/IdleNotification* Committed: http://code.google.com/p/v8/source/detail?r=10093

Patch Set 1 #

Total comments: 28

Patch Set 2 : Addressed comments. #

Total comments: 3

Patch Set 3 : Add scavenge counter #

Total comments: 7

Patch Set 4 : Addressed comments, tuned idle round starting conditions. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -14 lines) Patch
M include/v8.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/api.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap.h View 1 2 3 5 chunks +50 lines, -2 lines 1 comment Download
M src/heap.cc View 1 2 3 4 chunks +81 lines, -3 lines 2 comments Download
M src/incremental-marking.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M src/incremental-marking.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M src/v8.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/v8.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 2 chunks +37 lines, -0 lines 1 comment Download
M test/cctest/test-heap.cc View 1 1 chunk +30 lines, -0 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
ulan
This CL uses idle notifications to make kMaxIdleCount incremental GC cycles and then to wait ...
9 years, 1 month ago (2011-11-10 12:38:26 UTC) #1
Erik Corry
http://codereview.chromium.org/8519002/diff/1/src/heap.cc File src/heap.cc (right): http://codereview.chromium.org/8519002/diff/1/src/heap.cc#newcode518 src/heap.cc:518: !idle_notification_will_schedule_next_gc()) { I think if the heuristics say we ...
9 years, 1 month ago (2011-11-10 15:06:55 UTC) #2
ulan
Please take another look. Addressed comments, added a new "hint" argument, gave descriptive names to ...
9 years, 1 month ago (2011-11-11 13:27:26 UTC) #3
Erik Corry
http://codereview.chromium.org/8519002/diff/5001/src/heap.h File src/heap.h (right): http://codereview.chromium.org/8519002/diff/5001/src/heap.h#newcode1781 src/heap.h:1781: return (gc_count_ - gc_count_when_last_idle_round_finished_ > 4); On 2011/11/11 13:27:26, ...
9 years, 1 month ago (2011-11-14 23:05:17 UTC) #4
ulan
Please take another look, added scavenges_since_last_full_gc_ counter. http://codereview.chromium.org/8519002/diff/5001/src/heap.h File src/heap.h (right): http://codereview.chromium.org/8519002/diff/5001/src/heap.h#newcode1781 src/heap.h:1781: return (gc_count_ ...
9 years, 1 month ago (2011-11-15 09:08:43 UTC) #5
Erik Corry
LGTM http://codereview.chromium.org/8519002/diff/9002/src/heap.cc File src/heap.cc (right): http://codereview.chromium.org/8519002/diff/9002/src/heap.cc#newcode4497 src/heap.cc:4497: if (mark_sweeps_since_idle_round_started_ >= kMaxMarkSweepsInIdleRound) { This test is ...
9 years, 1 month ago (2011-11-22 12:29:26 UTC) #6
ulan
Addressed comments and tuned heuristics for starting and finishing the idle round. Could you please ...
9 years, 1 month ago (2011-11-23 16:18:06 UTC) #7
Erik Corry
9 years ago (2011-11-25 09:21:30 UTC) #8
Still LGTM

http://codereview.chromium.org/8519002/diff/16001/test/cctest/test-api.cc
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/8519002/diff/16001/test/cctest/test-api.cc#new...
test/cctest/test-api.cc:13430: }
Can we test that the heap is now much smaller?

http://codereview.chromium.org/8519002/diff/16001/test/cctest/test-heap.cc
File test/cctest/test-heap.cc (right):

http://codereview.chromium.org/8519002/diff/16001/test/cctest/test-heap.cc#ne...
test/cctest/test-heap.cc:1320: CHECK(new_size < old_size);
Can we tighten this assertion?   It should have collected a lot of memory by
this time.  Perhaps we can insist that it has collected half?

Powered by Google App Engine
This is Rietveld 408576698