This looks much better than the original solution. First round of comments.


https://codereview.chromium.org/12082101/diff/5004/src/mark-compact.cc
File src/mark-compact.cc (right):

https://codereview.chromium.org/12082101/diff/5004/src/mark-compact.cc#newcode3868
src/mark-compact.cc:3868: WaitUntilSweepingCompleted();
The ordering of the calls is off, in the "parallel sweeping" mode this
would cause the evacuation candidates to be release before they are
actually evacuated.

I would suggest to add a FinalizeSweeping() method that is called after
WaitUntilSweepingComplete() returns on all other call-sites ...

https://codereview.chromium.org/12082101/diff/5004/src/mark-compact.cc#newcode3887
src/mark-compact.cc:3887: if (!AreSweeperThreadsActivated()) {
... but called down here at this call-site. Also I would change the
if-cascade to use the same predicates:

if (how_to_sweep == PARALLEL_CONSERVATIVE) {
  if (FLAG_parallel_sweeping && !FLAG_concurrent_sweeping) {
    FinalizeSweeping();
  }
}

https://codereview.chromium.org/12082101/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to