Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index fc552629b6ca0695903380162876e38a611d7c99..2a7a16c52d6e2c64586ba415cac9c61c6f908d25 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -978,7 +978,7 @@ bool Heap::CollectGarbage(GarbageCollector collector, |
const char* collector_reason, |
const v8::GCCallbackFlags gc_callback_flags) { |
// The VM is in the GC state until exiting this function. |
- VMState<GC> state(isolate_); |
+ VMState<GC> state(isolate()); |
RuntimeCallTimerScope(isolate(), &RuntimeCallStats::GC); |
#ifdef DEBUG |