Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 4a7e8f2a9af7372f229bb4828387415d5a12fe08..04aa98b2de6dfe59b3e3bc3404e674e5808d2f67 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -920,6 +920,7 @@ bool Heap::PerformGarbageCollection(GarbageCollector collector, |
{ |
GCTracer::Scope scope(tracer, GCTracer::Scope::EXTERNAL); |
VMState<EXTERNAL> state(isolate_); |
+ HandleScope handle_scope(isolate_); |
CallGCPrologueCallbacks(gc_type, kNoGCCallbackFlags); |
} |
@@ -1025,6 +1026,7 @@ bool Heap::PerformGarbageCollection(GarbageCollector collector, |
{ |
GCTracer::Scope scope(tracer, GCTracer::Scope::EXTERNAL); |
VMState<EXTERNAL> state(isolate_); |
+ HandleScope handle_scope(isolate_); |
CallGCEpilogueCallbacks(gc_type); |
} |