diff options
author | 2019-05-30 14:23:39 +0100 | |
---|---|---|
committer | 2019-05-31 14:15:59 +0000 | |
commit | 991cd5cc16267b74e390f640eb441102062babb6 (patch) | |
tree | d6112197d0bfec05d5a66da2b27578504385b9f5 /runtime/mirror/array-alloc-inl.h | |
parent | 78da5e255d1281412e9f7e4f0c9b4e90ba7f02b5 (diff) |
Add default template args to Heap::Alloc*Object*().
Namely kInstrumented=true and kCheckLargeObject=true.
This is a follow-up after
https://android-review.googlesource.com/963693
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I6c23e76f90f1892382c3bb8c331d12437bc23f89
Diffstat (limited to 'runtime/mirror/array-alloc-inl.h')
-rw-r--r-- | runtime/mirror/array-alloc-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mirror/array-alloc-inl.h b/runtime/mirror/array-alloc-inl.h index eb083f7b23..c1e0175c8c 100644 --- a/runtime/mirror/array-alloc-inl.h +++ b/runtime/mirror/array-alloc-inl.h @@ -144,14 +144,14 @@ inline ObjPtr<Array> Array::Alloc(Thread* self, if (!kFillUsable) { SetLengthVisitor visitor(component_count); result = ObjPtr<Array>::DownCast( - heap->AllocObjectWithAllocator<kIsInstrumented, true>( + heap->AllocObjectWithAllocator<kIsInstrumented>( self, array_class, size, allocator_type, visitor)); } else { SetLengthToUsableSizeVisitor visitor(component_count, DataOffset(1U << component_size_shift).SizeValue(), component_size_shift); result = ObjPtr<Array>::DownCast( - heap->AllocObjectWithAllocator<kIsInstrumented, true>( + heap->AllocObjectWithAllocator<kIsInstrumented>( self, array_class, size, allocator_type, visitor)); } if (kIsDebugBuild && result != nullptr && Runtime::Current()->IsStarted()) { |