Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 4f98293556bbd8d3eca3a15c2361c135477334f2..5bb56e6e722af5b415335642e86992229bc90230 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6882,11 +6882,13 @@ void Isolate::CollectAllGarbage(const char* gc_reason) { |
i::Heap* heap = reinterpret_cast<i::Isolate*>(this)->heap(); |
if (heap->incremental_marking()->IsStopped()) { |
if (heap->incremental_marking()->CanBeActivated()) { |
- heap->StartIncrementalMarking(i::Heap::kNoGCFlags, kGCCallbackFlagForced, |
- gc_reason); |
+ heap->StartIncrementalMarking( |
+ i::Heap::kNoGCFlags, |
+ kGCCallbackFlagSynchronousPhantomCallbackProcessing, gc_reason); |
} else { |
- heap->CollectAllGarbage(i::Heap::kNoGCFlags, gc_reason, |
- kGCCallbackFlagForced); |
+ heap->CollectAllGarbage( |
+ i::Heap::kNoGCFlags, gc_reason, |
+ kGCCallbackFlagSynchronousPhantomCallbackProcessing); |
} |
} else { |
// Incremental marking is turned on an has already been started. |