Index: runtime/vm/scavenger.cc |
diff --git a/runtime/vm/scavenger.cc b/runtime/vm/scavenger.cc |
index ecf1ed08166fabea3104a34961e8425edb260239..89246ee28da7704735886ce55b9c37c52c318a96 100644 |
--- a/runtime/vm/scavenger.cc |
+++ b/runtime/vm/scavenger.cc |
@@ -821,7 +821,7 @@ void Scavenger::Scavenge(bool invoke_api_callbacks) { |
// The API prologue/epilogue may create/destroy zones, so we must not |
// depend on zone allocations surviving beyond the epilogue callback. |
{ |
- StackZone zone(isolate); |
+ StackZone zone(Thread::Current()); |
// Setup the visitor and run the scavenge. |
ScavengerVisitor visitor(isolate, this); |
page_space->AcquireDataLock(); |