| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index 7c59c0471e4b81c74169ad75beff6a50776168e1..94f10919a7add44cd4e8fe7280f1908a7c87a7b0 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -686,8 +686,8 @@ void MarkCompactCollector::Prepare(GCTracer* tracer) {
|
| }
|
| #endif
|
|
|
| - // Clear marking bits for precise sweeping to collect all garbage.
|
| - if (was_marked_incrementally_ && PreciseSweepingRequired()) {
|
| + // Clear marking bits if incremental marking is aborted.
|
| + if (was_marked_incrementally_ && abort_incremental_marking_) {
|
| heap()->incremental_marking()->Abort();
|
| ClearMarkbits();
|
| AbortCompaction();
|
|
|