Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 3a60e0051cbbe4a02db9eb134b84fe9d0d63b25d..7eb5af3b6a4a408f20d40e5ede782643407acb24 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -907,7 +907,10 @@ void Heap::ReportExternalMemoryPressure(const char* gc_reason) { |
if (incremental_marking()->CanBeActivated()) { |
StartIncrementalMarking( |
i::Heap::kNoGCFlags, |
- kGCCallbackFlagSynchronousPhantomCallbackProcessing, gc_reason); |
+ static_cast<GCCallbackFlags>( |
+ kGCCallbackFlagSynchronousPhantomCallbackProcessing | |
+ kGCCallbackFlagCollectAllExternalMemory), |
+ gc_reason); |
} else { |
CollectAllGarbage(i::Heap::kNoGCFlags, gc_reason, |
kGCCallbackFlagSynchronousPhantomCallbackProcessing); |