| Index: runtime/vm/stub_code_arm.cc
|
| diff --git a/runtime/vm/stub_code_arm.cc b/runtime/vm/stub_code_arm.cc
|
| index d6571205b691c208c43f194ce328ea19a2d72449..0d876d320473112218277b37fac177ce3f0ed4eb 100644
|
| --- a/runtime/vm/stub_code_arm.cc
|
| +++ b/runtime/vm/stub_code_arm.cc
|
| @@ -1083,7 +1083,8 @@ void StubCode::GenerateAllocationStubForClass(
|
| const int kInlineInstanceSize = 12;
|
| const intptr_t instance_size = cls.instance_size();
|
| ASSERT(instance_size > 0);
|
| - 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.
|
|
|