Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 0dbce1fed543a13d415819910f06c9715c0c016f..1f5c1097eb23edd260bf77a61ef79ad2e0e99dd4 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(); |