summaryrefslogtreecommitdiff
path: root/runtime/mirror/class-alloc-inl.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2019-05-30 14:23:39 +0100
committer Vladimir Marko <vmarko@google.com> 2019-05-31 14:15:59 +0000
commit991cd5cc16267b74e390f640eb441102062babb6 (patch)
treed6112197d0bfec05d5a66da2b27578504385b9f5 /runtime/mirror/class-alloc-inl.h
parent78da5e255d1281412e9f7e4f0c9b4e90ba7f02b5 (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/class-alloc-inl.h')
-rw-r--r--runtime/mirror/class-alloc-inl.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/mirror/class-alloc-inl.h b/runtime/mirror/class-alloc-inl.h
index cab3c5174b..28612443be 100644
--- a/runtime/mirror/class-alloc-inl.h
+++ b/runtime/mirror/class-alloc-inl.h
@@ -54,13 +54,10 @@ inline ObjPtr<Object> Class::Alloc(Thread* self, gc::AllocatorType allocator_typ
if (!kCheckAddFinalizer) {
DCHECK(!IsFinalizable());
}
- // Note that the this pointer may be invalidated after the allocation.
+ // Note that the `this` pointer may be invalidated after the allocation.
ObjPtr<Object> obj =
- heap->AllocObjectWithAllocator<kIsInstrumented, false>(self,
- this,
- this->object_size_,
- allocator_type,
- VoidFunctor());
+ heap->AllocObjectWithAllocator<kIsInstrumented, /*kCheckLargeObject=*/ false>(
+ self, this, this->object_size_, allocator_type, VoidFunctor());
if (add_finalizer && LIKELY(obj != nullptr)) {
heap->AddFinalizerReference(self, &obj);
if (UNLIKELY(self->IsExceptionPending())) {