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

Issue 13341: Improve mark-compact object grouping interface. (Closed)

Created:
12 years ago by Dean McNamee
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Improve mark-compact object grouping interface. The main goal was to improve O(n^2) behavior when there are many object groups. The old API required the grouping to be done on the v8 side, along with a linear search. The new interface requires the caller to do the grouping, passing V8 entire groups at a time. This removes the group id concept on the v8 side. - Changed AddObjectToGroup to AddObjectGroup. - Removed the group id concept from the V8 side. - Remove a static constructor while I'm here, lazily initialize the object groups list. - Cleaned up return by non-const references to return pointers.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Feedback #

Patch Set 3 : Tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -48 lines) Patch
M include/v8.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/api.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M src/global-handles.h View 1 2 3 chunks +7 lines, -13 lines 0 comments Download
M src/global-handles.cc View 1 1 chunk +14 lines, -17 lines 0 comments Download
M src/mark-compact.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/test-mark-compact.cc View 2 chunks +12 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Dean McNamee
I tried a handful of approaches, and this ended up being the cleanest. Keeping a ...
12 years ago (2008-12-10 14:23:42 UTC) #1
Christian Plesner Hansen
My $.02. Lgtm overall. http://codereview.chromium.org/13341/diff/1/2 File include/v8.h (right): http://codereview.chromium.org/13341/diff/1/2#newcode1973 Line 1973: static void AddObjectGroup(Persistent<Object>* objects, ...
12 years ago (2008-12-10 14:38:45 UTC) #2
Mads Ager (chromium)
LGTM
12 years ago (2008-12-10 15:58:35 UTC) #3
Feng Qian
LGTM, my only comment is that, in the future, we might want to expose a ...
12 years ago (2008-12-10 16:31:28 UTC) #4
Dean McNamee
I added the changes to test/cctest/test-mark-compact.cc, tests pass. If it looks ok I'll commit. Thanks. ...
12 years ago (2008-12-11 11:04:53 UTC) #5
Christian Plesner Hansen
12 years ago (2008-12-11 11:10:36 UTC) #6
Lgtm!

Powered by Google App Engine
This is Rietveld 408576698