Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index ad83dfb8c7e02843df2b4851d5e14e5131e1bd2d..5657ea75e3650be99a075b9cd84bf54f36baafa4 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -895,7 +895,7 @@ void Heap::CollectAllAvailableGarbage(const char* gc_reason) { |
const int kMinNumberOfAttempts = 2; |
for (int attempt = 0; attempt < kMaxNumberOfAttempts; attempt++) { |
if (!CollectGarbage(MARK_COMPACTOR, gc_reason, NULL, |
- v8::kGCCallbackFlagForced) && |
+ v8::kGCCallbackFlagCollectAllAvailableGarbage) && |
attempt + 1 >= kMinNumberOfAttempts) { |
break; |
} |