diff --git a/src/heap.cc b/src/heap.cc index b7f9d069d2..381815dad7 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -7528,6 +7528,7 @@ void Heap::GarbageCollectionGreedyCheck() { ASSERT(FLAG_gc_greedy); if (isolate_->bootstrapper()->IsActive()) return; if (!AllowAllocationFailure::IsAllowed(isolate_)) return; + if (!AllowHeapAllocation::IsAllowed(isolate_)) return; CollectGarbage(NEW_SPACE); } #endif