| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index aa5c3a9200cdfeecfad159ed9af42970ec2dc983..d831ee0a1ce4481e9ba187f46d082a63dc2e5ea6 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -105,7 +105,6 @@ Heap::Heap()
|
| unflattened_strings_length_(0),
|
| #ifdef DEBUG
|
| allocation_timeout_(0),
|
| - disallow_allocation_failure_(false),
|
| #endif // DEBUG
|
| new_space_high_promotion_mode_active_(false),
|
| old_generation_allocation_limit_(kMinimumOldGenerationAllocationLimit),
|
| @@ -7527,7 +7526,7 @@ void DescriptorLookupCache::Clear() {
|
| void Heap::GarbageCollectionGreedyCheck() {
|
| ASSERT(FLAG_gc_greedy);
|
| if (isolate_->bootstrapper()->IsActive()) return;
|
| - if (disallow_allocation_failure()) return;
|
| + if (!AllowAllocationFailure::IsAllowed(isolate_)) return;
|
| CollectGarbage(NEW_SPACE);
|
| }
|
| #endif
|
|
|