Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index b61f633a4e3dd1b40c71bbfd16ecc67ada785a9c..ef2e1137857ebe685c72705e917a6317d75e01d6 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -387,7 +387,9 @@ void IncrementalMarking::ActivateIncrementalWriteBarrier() { |
bool IncrementalMarking::ShouldActivate() { |
- return WorthActivating() && heap_->NextGCIsLikelyToBeFull(); |
+ return WorthActivating() && |
+ heap_->NextGCIsLikelyToBeFull( |
+ heap_->old_generation_allocation_limit()); |
} |