Index: runtime/vm/heap.cc |
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc |
index 1453bd262597c376ca84d66c3f4c377d2be63671..038ea1b1d3fa3c25e81bbc445cffc9e6d0d6b5cb 100644 |
--- a/runtime/vm/heap.cc |
+++ b/runtime/vm/heap.cc |
@@ -787,7 +787,7 @@ void Heap::PrintStats() { |
NoHeapGrowthControlScope::NoHeapGrowthControlScope() |
- : StackResource(Isolate::Current()) { |
+ : StackResource(Thread::Current()) { |
Heap* heap = reinterpret_cast<Isolate*>(isolate())->heap(); |
current_growth_controller_state_ = heap->GrowthControlState(); |
heap->DisableGrowthControl(); |