Index: src/heap/heap-inl.h |
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h |
index 36e56a0aba75e8e8e50b558d549885210c23d028..dbb3e95866f9426fed6e213ad9df7c8a855bcb5f 100644 |
--- a/src/heap/heap-inl.h |
+++ b/src/heap/heap-inl.h |
@@ -198,7 +198,7 @@ AllocationResult Heap::AllocateRaw(int size_in_bytes, AllocationSpace space, |
DCHECK(AllowHeapAllocation::IsAllowed()); |
DCHECK(gc_state_ == NOT_IN_GC); |
#ifdef DEBUG |
- if (FLAG_gc_interval >= 0 && AllowAllocationFailure::IsAllowed(isolate_) && |
+ if (FLAG_gc_interval >= 0 && !always_allocate() && |
Heap::allocation_timeout_-- <= 0) { |
return AllocationResult::Retry(space); |
} |
@@ -748,7 +748,7 @@ void Heap::SetSetterStubDeoptPCOffset(int pc_offset) { |
AlwaysAllocateScope::AlwaysAllocateScope(Isolate* isolate) |
- : heap_(isolate->heap()), daf_(isolate) { |
+ : heap_(isolate->heap()) { |
heap_->always_allocate_scope_count_.Increment(1); |
} |