Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 45698a1f9f5c5884939327a050165c1c0585602f..4f9b672bf9d24d3e2649c35f4f3e4fa8490336f4 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -1636,6 +1636,7 @@ class Heap { |
} |
bool AdvanceSweepers(int step_size) { |
+ ASSERT(!FLAG_parallel_sweeping && !FLAG_concurrent_sweeping); |
bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size); |
sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size); |
return sweeping_complete; |