Index: runtime/vm/stub_code.cc |
diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc |
index 05ce4325bbe4d954981945ae06561991d68e49f5..70144e91a26a30bbe490d59becad5ffffea295e2 100644 |
--- a/runtime/vm/stub_code.cc |
+++ b/runtime/vm/stub_code.cc |
@@ -105,6 +105,7 @@ RawCode* StubCode::GetAllocationStubForClass(const Class& cls) { |
const char* name = cls.ToCString(); |
StubCode::GenerateAllocationStubForClass(&assembler, cls); |
stub ^= Code::FinalizeCode(name, &assembler); |
+ stub.set_owner(cls); |
cls.set_allocation_stub(stub); |
if (FLAG_disassemble_stubs) { |
OS::Print("Code for allocation stub '%s': {\n", name); |