Index: runtime/vm/snapshot.cc |
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc |
index c8e6d130a2a8a22b065c01c6c77ab2d289553f8d..e4c757dfe0b5c4a414046f6fb4ef5b288161a305 100644 |
--- a/runtime/vm/snapshot.cc |
+++ b/runtime/vm/snapshot.cc |
@@ -260,7 +260,7 @@ RawClass* SnapshotReader::ReadClassId(intptr_t object_id) { |
if (cls.IsNull()) { |
SetReadException("Invalid object found in message."); |
} |
- cls.EnsureIsFinalized(isolate()); |
+ cls.EnsureIsFinalized(thread()); |
return cls.raw(); |
} |
@@ -291,7 +291,7 @@ RawFunction* SnapshotReader::ReadFunctionId(intptr_t object_id) { |
if (cls_.IsNull()) { |
SetReadException("Expected a class name, but found an invalid name."); |
} |
- cls_.EnsureIsFinalized(isolate()); |
+ cls_.EnsureIsFinalized(thread()); |
str_ ^= ReadObjectImpl(kAsInlinedObject); |
func ^= cls_.LookupFunctionAllowPrivate(str_); |
} |
@@ -328,7 +328,7 @@ RawObject* SnapshotReader::ReadStaticImplicitClosure(intptr_t object_id, |
OS::Print("Name of class not found %s\n", str_.ToCString()); |
SetReadException("Invalid Class object found in message."); |
} |
- cls_.EnsureIsFinalized(isolate()); |
+ cls_.EnsureIsFinalized(thread()); |
str_ ^= ReadObjectImpl(kAsInlinedObject); |
func = cls_.LookupFunctionAllowPrivate(str_); |
} |