diff options
Diffstat (limited to 'runtime/native/dalvik_system_VMRuntime.cc')
-rw-r--r-- | runtime/native/dalvik_system_VMRuntime.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/native/dalvik_system_VMRuntime.cc b/runtime/native/dalvik_system_VMRuntime.cc index f0efdc2..fd3d91e 100644 --- a/runtime/native/dalvik_system_VMRuntime.cc +++ b/runtime/native/dalvik_system_VMRuntime.cc @@ -71,7 +71,8 @@ static jobject VMRuntime_newNonMovableArray(JNIEnv* env, jobject, jclass javaEle descriptor += ClassHelper(element_class).GetDescriptor(); SirtRef<mirror::ClassLoader> class_loader(soa.Self(), nullptr); mirror::Class* array_class = class_linker->FindClass(descriptor.c_str(), class_loader); - mirror::Array* result = mirror::Array::Alloc<false, true>(soa.Self(), array_class, length); + mirror::Array* result = mirror::Array::Alloc<true>(soa.Self(), array_class, length, + Runtime::Current()->GetHeap()->GetCurrentNonMovingAllocator()); return soa.AddLocalReference<jobject>(result); } |