Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 37848c25942f4ecd822b517cd3deed066f18d27e..31599e5cd044a9b9d8b9bc88c521d4a676b90cb7 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -112,7 +112,6 @@ Heap::Heap() |
allocation_timeout_(0), |
#endif // DEBUG |
old_generation_allocation_limit_(initial_old_generation_size_), |
- old_gen_exhausted_(false), |
inline_allocation_disabled_(false), |
total_regexp_code_generated_(0), |
tracer_(nullptr), |
@@ -282,15 +281,6 @@ GarbageCollector Heap::SelectGarbageCollector(AllocationSpace space, |
return MARK_COMPACTOR; |
} |
- // Have allocation in OLD and LO failed? |
- if (old_gen_exhausted_) { |
- isolate_->counters() |
- ->gc_compactor_caused_by_oldspace_exhaustion() |
- ->Increment(); |
- *reason = "old generations exhausted"; |
- return MARK_COMPACTOR; |
- } |
- |
// Is there enough space left in OLD to guarantee that a scavenge can |
// succeed? |
// |
@@ -1341,7 +1331,6 @@ bool Heap::PerformGarbageCollection( |
UpdateOldGenerationAllocationCounter(); |
// Perform mark-sweep with optional compaction. |
MarkCompact(); |
- old_gen_exhausted_ = false; |
old_generation_size_configured_ = true; |
// This should be updated before PostGarbageCollectionProcessing, which |
// can cause another GC. Take into account the objects promoted during GC. |