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

Issue 1358703003: Changed scavenge GC to collect unmodified references (Closed)

Created:
5 years, 3 months ago by mythria
Modified:
5 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Changed scavenge GC to collect unmodified references Added a scavenge GC pass that collects unmodified references instead of processing object groups. This mode can be controlled by setting FLAG_scavenge_remove_unmodified_objects. By default this is turned off. Also, modified a test case to suit the handle the new GC pass. BUG=v8:4421 LOG=N Committed: https://crrev.com/6254019238a853c9f3c09d615ba153043f6957c7 Cr-Commit-Position: refs/heads/master@{#31102}

Patch Set 1 #

Total comments: 6

Patch Set 2 : modified check for unmodified objects #

Total comments: 1

Patch Set 3 : Modified visitor in object group #

Total comments: 1

Patch Set 4 : Re-implemented scavenge optimization to discard unmodified references #

Total comments: 1

Patch Set 5 : Updated to use a new unmodified flag instead of partially dependent flag #

Total comments: 10

Patch Set 6 : Merged unmodified flag to use the same bit field as partially dependent flag. These two flags are m… #

Patch Set 7 : rebased the patch #

Total comments: 15

Patch Set 8 : addressed review comments. #

Patch Set 9 : Fixed another nit which I missed in last patch #

Patch Set 10 : Checks if the object is not active inaddition to unmodified before reclaiming it. The browser test … #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -21 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 8 9 4 chunks +25 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M src/global-handles.h View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -1 line 0 comments Download
M src/global-handles.cc View 1 2 3 4 5 6 7 8 9 12 chunks +132 lines, -11 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 8 9 6 chunks +42 lines, -7 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (4 generated)
mythria
Could you please look at global-handles.cc and review my changes. Thanks and Regards, Mythri https://codereview.chromium.org/1358703003/diff/1/src/global-handles.cc ...
5 years, 3 months ago (2015-09-21 09:54:23 UTC) #2
mythria
On 2015/09/21 09:54:23, mythria wrote: > Could you please look at global-handles.cc and review my ...
5 years, 3 months ago (2015-09-21 11:25:40 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1358703003/diff/1/src/global-handles.cc File src/global-handles.cc (right): https://codereview.chromium.org/1358703003/diff/1/src/global-handles.cc#newcode702 src/global-handles.cc:702: On 2015/09/21 at 09:54:23, mythria wrote: > Here, I ...
5 years, 3 months ago (2015-09-21 11:33:25 UTC) #4
rmcilroy
https://codereview.chromium.org/1358703003/diff/1/src/global-handles.cc File src/global-handles.cc (right): https://codereview.chromium.org/1358703003/diff/1/src/global-handles.cc#newcode702 src/global-handles.cc:702: One difference I can possibly think of is that ...
5 years, 3 months ago (2015-09-21 11:44:16 UTC) #5
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1358703003/diff/1/src/global-handles.cc File src/global-handles.cc (right): https://codereview.chromium.org/1358703003/diff/1/src/global-handles.cc#newcode702 src/global-handles.cc:702: On 2015/09/21 at 11:44:15, rmcilroy wrote: > One difference ...
5 years, 3 months ago (2015-09-21 11:54:19 UTC) #6
mythria
Hi Jochen, I have the same behavior with the new check as well. I modified ...
5 years, 3 months ago (2015-09-22 10:45:08 UTC) #7
mythria
Hi, I am not sure if this helps, but I just tried changing the way ...
5 years, 3 months ago (2015-09-22 10:57:00 UTC) #8
mythria
Hi Jochen, Could you look at the changes in heap.cc and global-handles.cc and see if ...
5 years, 2 months ago (2015-09-25 17:23:51 UTC) #9
jochen (gone - plz use gerrit)
I'd prefer if we didn't use partial dependent information at all when your flag is ...
5 years, 2 months ago (2015-09-28 11:26:04 UTC) #10
mythria
Hi Jochen, Thank you for your comments. I addressed both your comments. Now, I use ...
5 years, 2 months ago (2015-09-28 15:20:08 UTC) #11
jochen (gone - plz use gerrit)
lgtm % nits looking forward to the perf results Did you get the image diffs ...
5 years, 2 months ago (2015-09-28 15:56:19 UTC) #12
rmcilroy
https://codereview.chromium.org/1358703003/diff/80001/src/global-handles.cc File src/global-handles.cc (right): https://codereview.chromium.org/1358703003/diff/80001/src/global-handles.cc#newcode704 src/global-handles.cc:704: node->set_partially_dependent(true); fix to set_unmodified(true); https://codereview.chromium.org/1358703003/diff/80001/src/global-handles.h File src/global-handles.h (right): https://codereview.chromium.org/1358703003/diff/80001/src/global-handles.h#newcode232 ...
5 years, 2 months ago (2015-09-28 17:32:47 UTC) #13
mythria
Hi, I merged unmodified flag into flags_. Overloaded the partially_dependent flag to mean unmodified depending ...
5 years, 2 months ago (2015-10-02 15:29:16 UTC) #14
rmcilroy
Lgtm once nits are addressed and assuming Jochen is still happy. https://codereview.chromium.org/1358703003/diff/120001/src/global-handles.cc File src/global-handles.cc (left): ...
5 years, 2 months ago (2015-10-02 18:09:47 UTC) #15
mythria
Hi Jochen, Fixed nits from Ross.If you have no further comments and if you think ...
5 years, 2 months ago (2015-10-05 10:55:34 UTC) #16
jochen (gone - plz use gerrit)
lgtm
5 years, 2 months ago (2015-10-05 10:57:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358703003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358703003/160001
5 years, 2 months ago (2015-10-05 15:59:18 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 2 months ago (2015-10-05 16:01:32 UTC) #21
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/6254019238a853c9f3c09d615ba153043f6957c7 Cr-Commit-Position: refs/heads/master@{#31102}
5 years, 2 months ago (2015-10-05 16:01:52 UTC) #22
Michael Achenbach
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/1388133002/ by machenbach@chromium.org. ...
5 years, 2 months ago (2015-10-06 16:54:28 UTC) #23
mythria
Hi, I fixed the problem with browser test. This patch checks if the object is ...
5 years, 2 months ago (2015-10-19 14:28:05 UTC) #24
jochen (gone - plz use gerrit)
5 years, 2 months ago (2015-10-20 09:34:32 UTC) #26
could you create a new CL please?

Powered by Google App Engine
This is Rietveld 408576698