Reviewers: danno,

Description:
heap: allow allocation in gc prologue/epilogue

BUG=
[email protected]

Please review this at https://codereview.chromium.org/177243012/

SVN Base: gh:v8/v8@master

Affected files (+2, -1 lines):
  M src/heap.cc


Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 42e56ca1eb9e2bb40498d9ea2d341c71a67f6b4e..a22e1f52c130eac4239efe14fcea103448c31e0d 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -1085,6 +1085,7 @@ bool Heap::PerformGarbageCollection(
collector == MARK_COMPACTOR ? kGCTypeMarkSweepCompact : kGCTypeScavenge;

   {
+    AllowHeapAllocation allow_allocation;
     GCTracer::Scope scope(tracer, GCTracer::Scope::EXTERNAL);
     VMState<EXTERNAL> state(isolate_);
     HandleScope handle_scope(isolate_);
@@ -1193,7 +1194,7 @@ bool Heap::PerformGarbageCollection(
         amount_of_external_allocated_memory_;
   }

-  {
+  { AllowHeapAllocation allow_allocation;
     GCTracer::Scope scope(tracer, GCTracer::Scope::EXTERNAL);
     VMState<EXTERNAL> state(isolate_);
     HandleScope handle_scope(isolate_);


--
--
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/groups/opt_out.

Reply via email to