| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 82d586c9795a46f8e681e12b8bb49fed3f7975e5..a1e2a48c0576afa7c86751fe327b9f3d550ecc8c 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -606,7 +606,7 @@ bool Heap::CollectGarbage(AllocationSpace space,
|
| const char* gc_reason,
|
| const char* collector_reason) {
|
| // The VM is in the GC state until exiting this function.
|
| - VMState state(isolate_, GC);
|
| + VMState<GC> state(isolate_);
|
|
|
| #ifdef DEBUG
|
| // Reset the allocation timeout to the GC interval, but make sure to
|
| @@ -892,7 +892,7 @@ bool Heap::PerformGarbageCollection(GarbageCollector collector,
|
|
|
| {
|
| GCTracer::Scope scope(tracer, GCTracer::Scope::EXTERNAL);
|
| - VMState state(isolate_, EXTERNAL);
|
| + VMState<EXTERNAL> state(isolate_);
|
| CallGCPrologueCallbacks(gc_type);
|
| }
|
|
|
| @@ -1014,7 +1014,7 @@ bool Heap::PerformGarbageCollection(GarbageCollector collector,
|
|
|
| {
|
| GCTracer::Scope scope(tracer, GCTracer::Scope::EXTERNAL);
|
| - VMState state(isolate_, EXTERNAL);
|
| + VMState<EXTERNAL> state(isolate_);
|
| CallGCEpilogueCallbacks(gc_type);
|
| }
|
|
|
|
|