Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index bdd4785e3e729368ab1c6bf297e48457f9b5c6b4..929e98c08bb7307a9f29c25b972ff26fc31954f5 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -541,6 +541,11 @@ bool MarkCompactCollector::AreSweeperThreadsActivated() { |
} |
+bool MarkCompactCollector::IsConcurrentSweepingInProgress() { |
+ return SweeperThread::sweeping_pending(); |
+} |
+ |
+ |
void MarkCompactCollector::MarkInParallel() { |
for (int i = 0; i < FLAG_marking_threads; i++) { |
heap()->isolate()->marking_threads()[i]->StartMarking(); |