Index: runtime/vm/stub_code_mips.cc |
diff --git a/runtime/vm/stub_code_mips.cc b/runtime/vm/stub_code_mips.cc |
index a65cb5b7b3b7267543ff933b434a72930d62fdf4..eb53d7f16948a079069151e61baa949af43f655c 100644 |
--- a/runtime/vm/stub_code_mips.cc |
+++ b/runtime/vm/stub_code_mips.cc |
@@ -1178,7 +1178,8 @@ void StubCode::GenerateAllocationStubForClass( |
__ lw(T1, Address(SP, 0 * kWordSize)); |
// T1: 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. |