| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index d48ae8b2b30604daba7dcef26df6932a7f3dab76..ab21e4d373af1e85fb76eb5e3b427f977498faf2 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -1558,8 +1558,8 @@ void Isolate::Deinit() {
|
| sweeper_thread_ = NULL;
|
|
|
| if (FLAG_job_based_sweeping &&
|
| - heap_.mark_compact_collector()->IsConcurrentSweepingInProgress()) {
|
| - heap_.mark_compact_collector()->WaitUntilSweepingCompleted();
|
| + heap_.mark_compact_collector()->sweeping_in_progress()) {
|
| + heap_.mark_compact_collector()->EnsureSweepingCompleted();
|
| }
|
|
|
| if (FLAG_hydrogen_stats) GetHStatistics()->Print();
|
|
|