| Index: runtime/vm/stub_code.cc
|
| diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc
|
| index df7773d933ce2b18b94101480d7c24b672b7b220..c42c21a1e1fed204289fc680d55b5b4e3bcd219f 100644
|
| --- a/runtime/vm/stub_code.cc
|
| +++ b/runtime/vm/stub_code.cc
|
| @@ -94,8 +94,9 @@ bool StubCode::InJumpToExceptionHandlerStub(uword pc) {
|
|
|
|
|
| RawCode* StubCode::GetAllocationStubForClass(const Class& cls) {
|
| - Isolate* isolate = Isolate::Current();
|
| - const Error& error = Error::Handle(isolate, cls.EnsureIsFinalized(isolate));
|
| + Thread* thread = Thread::Current();
|
| + Isolate* isolate = thread->isolate();
|
| + const Error& error = Error::Handle(isolate, cls.EnsureIsFinalized(thread));
|
| ASSERT(error.IsNull());
|
| if (cls.id() == kArrayCid) {
|
| return AllocateArray_entry()->code();
|
|
|