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