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

Issue 794583003: Retain maps for several garbage collections (Closed)

Created:
6 years ago by ulan
Modified:
6 years ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

Retain maps for several garbage collections This keeps dying maps alive for FLAG_retain_maps_for_n_gc garbage collections to increase chances of them being reused for new objects in future. BUG=v8:3664 LOG=N TEST=cctest/test-heap/MapRetaining Committed: https://crrev.com/2bc756e4b36160595c811c5433d0238ae5192525 Cr-Commit-Position: refs/heads/master@{#25887}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 17

Patch Set 3 : Address comments #

Patch Set 4 : #

Patch Set 5 : Check that constructor is HeapObject #

Patch Set 6 : Add comment #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -2 lines) Patch
M src/debug.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap/mark-compact.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/heap/mark-compact.cc View 1 2 3 4 5 6 2 chunks +51 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 6 6 chunks +39 lines, -1 line 0 comments Download
M test/cctest/test-mark-compact.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
ulan
PTAL
6 years ago (2014-12-15 16:37:02 UTC) #4
Erik Corry
https://codereview.chromium.org/794583003/diff/60001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/794583003/diff/60001/src/heap/mark-compact.cc#newcode2134 src/heap/mark-compact.cc:2134: // down to Map::kRetainingCounterStart. This range can be narrowed ...
6 years ago (2014-12-16 16:16:33 UTC) #6
ulan
https://codereview.chromium.org/794583003/diff/60001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/794583003/diff/60001/src/heap/mark-compact.cc#newcode2134 src/heap/mark-compact.cc:2134: // down to Map::kRetainingCounterStart. This range can be narrowed ...
6 years ago (2014-12-16 16:35:23 UTC) #7
Erik Corry
https://codereview.chromium.org/794583003/diff/60001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/794583003/diff/60001/src/heap/mark-compact.cc#newcode2159 src/heap/mark-compact.cc:2159: ProcessMarkingDeque(); Can't we just process the marking deque at ...
6 years ago (2014-12-16 16:52:48 UTC) #8
ulan
https://codereview.chromium.org/794583003/diff/60001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (right): https://codereview.chromium.org/794583003/diff/60001/src/heap/mark-compact.cc#newcode2159 src/heap/mark-compact.cc:2159: ProcessMarkingDeque(); On 2014/12/16 16:52:48, Erik Corry wrote: > Can't ...
6 years ago (2014-12-16 16:54:36 UTC) #9
Hannes Payer (out of office)
About the tests: Instead of changing the old tests to FLAG_retain_maps_for_n_gc = 0; wouldn't it ...
6 years ago (2014-12-16 17:15:35 UTC) #10
ulan
> About the tests: Instead of changing the old tests to FLAG_retain_maps_for_n_gc = 0; wouldn't ...
6 years ago (2014-12-17 11:13:34 UTC) #11
Hannes Payer (out of office)
OK, don't change the test. It should be fine. LGTM from my side, just add ...
6 years ago (2014-12-17 18:45:49 UTC) #12
Erik Corry
LGTM However, I think this change would be even better if the aging was done ...
6 years ago (2014-12-18 11:25:19 UTC) #13
Hannes Payer (out of office)
good point erik.
6 years ago (2014-12-18 12:15:23 UTC) #14
ulan
> just add the comment about the impreciseness. Done. > However, I think this change ...
6 years ago (2014-12-18 15:16:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/794583003/160001
6 years ago (2014-12-18 15:18:00 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:160001)
6 years ago (2014-12-18 15:44:25 UTC) #18
commit-bot: I haz the power
6 years ago (2014-12-18 18:05:37 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2bc756e4b36160595c811c5433d0238ae5192525
Cr-Commit-Position: refs/heads/master@{#25887}

Powered by Google App Engine
This is Rietveld 408576698