Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: src/heap.cc

Issue 227513003: Do not greedy GC if no allocation is expected/allowed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index b7f9d069d2e85c15ff7d24b6a9ea7b850df20239..381815dad734b9eda932a542d82c55266d30c0b1 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698