Revision: 20548
Author:   [email protected]
Date:     Mon Apr  7 13:36:43 2014 UTC
Log:      Do not greedy GC if no allocation is expected/allowed.

[email protected]

Review URL: https://codereview.chromium.org/227513003
http://code.google.com/p/v8/source/detail?r=20548

Modified:
 /branches/bleeding_edge/src/heap.cc

=======================================
--- /branches/bleeding_edge/src/heap.cc Mon Apr  7 12:43:35 2014 UTC
+++ /branches/bleeding_edge/src/heap.cc Mon Apr  7 13:36:43 2014 UTC
@@ -7528,6 +7528,7 @@
   ASSERT(FLAG_gc_greedy);
   if (isolate_->bootstrapper()->IsActive()) return;
   if (!AllowAllocationFailure::IsAllowed(isolate_)) return;
+  if (!AllowHeapAllocation::IsAllowed(isolate_)) return;
   CollectGarbage(NEW_SPACE);
 }
 #endif

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to