Chromium Code Reviews| Index: src/mark-compact.cc |
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
| index 2ca69b3ddc84e49f0a20ad6f49461deba3a333d4..934cb22056a0dc17480d17a623348ae67b28f805 100644 |
| --- a/src/mark-compact.cc |
| +++ b/src/mark-compact.cc |
| @@ -3722,7 +3722,8 @@ void MarkCompactCollector::SweepInParallel(PagedSpace* space, |
| void MarkCompactCollector::SweepSpace(PagedSpace* space, SweeperType sweeper) { |
| space->set_was_swept_conservatively(sweeper == CONSERVATIVE || |
| - sweeper == LAZY_CONSERVATIVE); |
| + sweeper == LAZY_CONSERVATIVE || |
| + sweeper == PARALLEL_CONSERVATIVE); |
| space->ClearStats(); |
| PageIterator it(space); |
| @@ -3842,8 +3843,8 @@ void MarkCompactCollector::SweepSpaces() { |
| SweeperType how_to_sweep = |
| FLAG_lazy_sweeping ? LAZY_CONSERVATIVE : CONSERVATIVE; |
| if (FLAG_expose_gc) how_to_sweep = CONSERVATIVE; |
| - if (sweep_precisely_) how_to_sweep = PRECISE; |
| if (AreSweeperThreadsActivated()) how_to_sweep = PARALLEL_CONSERVATIVE; |
|
Michael Starzinger
2013/02/13 10:59:23
I think this needs to go up one more line (to abov
Hannes Payer (out of office)
2013/02/13 11:02:26
Done.
|
| + if (sweep_precisely_) how_to_sweep = PRECISE; |
| // Noncompacting collections simply sweep the spaces to clear the mark |
| // bits and free the nonlive blocks (for old and map spaces). We sweep |
| // the map space last because freeing non-live maps overwrites them and |
| @@ -3860,7 +3861,7 @@ void MarkCompactCollector::SweepSpaces() { |
| EvacuateNewSpaceAndCandidates(); |
| - if (AreSweeperThreadsActivated()) { |
| + if (how_to_sweep == PARALLEL_CONSERVATIVE) { |
| // TODO(hpayer): The starting of the sweeper threads should be after |
| // SweepSpace old data space. |
| StartSweeperThreads(); |