| Index: runtime/vm/stub_code_arm64.cc
|
| diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
|
| index 5d074515ba1add0d4b97cb6d73ada697dfe03330..10e241174ca54a416b805216647e407218dfd843 100644
|
| --- a/runtime/vm/stub_code_arm64.cc
|
| +++ b/runtime/vm/stub_code_arm64.cc
|
| @@ -1128,7 +1128,8 @@ void StubCode::GenerateAllocationStubForClass(
|
| __ ldr(R1, Address(SP));
|
| // R1: 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.
|
|
|