Chromium Code Reviews| Index: src/isolate.cc |
| diff --git a/src/isolate.cc b/src/isolate.cc |
| index 0dbce1fed543a13d415819910f06c9715c0c016f..040085f84f54e9d643ec25748d2ccf38cf218799 100644 |
| --- a/src/isolate.cc |
| +++ b/src/isolate.cc |
| @@ -1558,7 +1558,7 @@ void Isolate::Deinit() { |
| sweeper_thread_ = NULL; |
| if (FLAG_job_based_sweeping && |
| - heap_.mark_compact_collector()->IsConcurrentSweepingInProgress()) { |
| + heap_.mark_compact_collector()->sweeping_pending()) { |
| heap_.mark_compact_collector()->WaitUntilSweepingCompleted(); |
| } |