diff options
Diffstat (limited to 'runtime/interpreter/interpreter_common.cc')
-rw-r--r-- | runtime/interpreter/interpreter_common.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_common.cc b/runtime/interpreter/interpreter_common.cc index 83a1fbc6e2..f76d50c873 100644 --- a/runtime/interpreter/interpreter_common.cc +++ b/runtime/interpreter/interpreter_common.cc @@ -197,7 +197,8 @@ bool DoFilledNewArray(const Instruction* inst, const ShadowFrame& shadow_frame, } return false; } - Object* newArray = Array::Alloc<true>(self, arrayClass, length); + Object* newArray = Array::Alloc<true>(self, arrayClass, length, arrayClass->GetComponentSize(), + Runtime::Current()->GetHeap()->GetCurrentAllocator()); if (UNLIKELY(newArray == NULL)) { DCHECK(self->IsExceptionPending()); return false; |