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

Issue 8787012: - Add free list to be used for sweep phase of mark-sweep collector. (Closed)

Created:
9 years ago by Ivan Posva
Modified:
9 years ago
Reviewers:
Anton Muhin, antonm, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Add free list to be used for sweep phase of mark-sweep collector. Committed: https://code.google.com/p/dart/source/detail?r=2053

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -0 lines) Patch
M vm/dart.cc View 2 chunks +2 lines, -0 lines 2 comments Download
A vm/freelist.h View 1 chunk +94 lines, -0 lines 0 comments Download
A vm/freelist.cc View 1 chunk +158 lines, -0 lines 3 comments Download
A vm/freelist_test.cc View 1 chunk +53 lines, -0 lines 0 comments Download
M vm/raw_object.h View 1 chunk +1 line, -0 lines 0 comments Download
M vm/vm_sources.gypi View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Ivan Posva
TBR=asiva
9 years ago (2011-12-03 05:39:17 UTC) #1
antonm
DBC http://codereview.chromium.org/8787012/diff/5001/vm/dart.cc File vm/dart.cc (right): http://codereview.chromium.org/8787012/diff/5001/vm/dart.cc#newcode8 vm/dart.cc:8: #include "vm/freelist.h" nit: sorting http://codereview.chromium.org/8787012/diff/5001/vm/freelist.cc File vm/freelist.cc (right): ...
9 years ago (2011-12-15 10:00:25 UTC) #2
Ivan Posva
http://codereview.chromium.org/8787012/diff/5001/vm/dart.cc File vm/dart.cc (right): http://codereview.chromium.org/8787012/diff/5001/vm/dart.cc#newcode8 vm/dart.cc:8: #include "vm/freelist.h" On 2011/12/15 10:00:25, antonm wrote: > nit: ...
9 years ago (2011-12-16 23:22:14 UTC) #3
Anton Muhin
9 years ago (2011-12-19 15:31:26 UTC) #4
http://codereview.chromium.org/8787012/diff/5001/vm/freelist.cc
File vm/freelist.cc (right):

http://codereview.chromium.org/8787012/diff/5001/vm/freelist.cc#newcode21
vm/freelist.cc:21: reinterpret_cast<RawClass*>(calloc(1,
Class::InstanceSize()));
I am more concerned with the case when objects may (in the future) require
bigger alignment say to distinguish between new and old space objects---the
places that need adjustment might be tricky to spot.

On 2011/12/16 23:22:14, Ivan Posva wrote:
> On 2011/12/15 10:00:25, antonm wrote:
> > maybe should check the alignment of allocated data?  or allocate with the
> proper
> > alignement.
> 
> If calloc does not allocate on word boundaries I think there would be bigger
> problems.

Powered by Google App Engine
This is Rietveld 408576698