| Index: runtime/vm/simulator_dbc.cc
|
| diff --git a/runtime/vm/simulator_dbc.cc b/runtime/vm/simulator_dbc.cc
|
| index 988fb9972da27682cab207e8996a926751048a17..a85f26d7cf5f3f0078645e224c7cf2c80d91cec7 100644
|
| --- a/runtime/vm/simulator_dbc.cc
|
| +++ b/runtime/vm/simulator_dbc.cc
|
| @@ -2957,11 +2957,9 @@ RawObject* Simulator::Call(const Code& code,
|
| BYTECODE(CreateArrayOpt, A_B_C);
|
| const intptr_t length = Smi::Value(RAW_CAST(Smi, FP[rB]));
|
| if (LIKELY(static_cast<uintptr_t>(length) <= Array::kMaxElements)) {
|
| - const intptr_t fixed_size_plus_alignment_padding =
|
| - sizeof(RawArray) + kObjectAlignment - 1;
|
| + const intptr_t fixed_size = sizeof(RawArray) + kObjectAlignment - 1;
|
| const intptr_t instance_size =
|
| - (fixed_size_plus_alignment_padding + length * kWordSize) &
|
| - ~(kObjectAlignment - 1);
|
| + (fixed_size + length * kWordSize) & ~(kObjectAlignment - 1);
|
| const uword start =
|
| thread->heap()->new_space()->TryAllocate(instance_size);
|
| if (LIKELY(start != 0)) {
|
|
|