Index: runtime/vm/stub_code_x64.cc |
diff --git a/runtime/vm/stub_code_x64.cc b/runtime/vm/stub_code_x64.cc |
index 2a158222cceacba8e4f233ba829acfc03f0989bf..c844e1f53108e4e9443667838a42c0dc0a4f61e9 100644 |
--- a/runtime/vm/stub_code_x64.cc |
+++ b/runtime/vm/stub_code_x64.cc |
@@ -1089,7 +1089,8 @@ void StubCode::GenerateAllocationStubForClass( |
__ movq(RDX, Address(RSP, kObjectTypeArgumentsOffset)); |
// RDX: instantiated type arguments. |
} |
- if (FLAG_inline_alloc && Heap::IsAllocatableInNewSpace(instance_size)) { |
+ if (FLAG_inline_alloc && Heap::IsAllocatableInNewSpace(instance_size) && |
+ !cls.trace_allocation()) { |
Label slow_case; |
// Allocate the object and update top to point to |
// next object start and initialize the allocated object. |