From 991cd5cc16267b74e390f640eb441102062babb6 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 30 May 2019 14:23:39 +0100 Subject: 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 --- runtime/mirror/class-alloc-inl.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'runtime/mirror/class-alloc-inl.h') 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 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 obj = - heap->AllocObjectWithAllocator(self, - this, - this->object_size_, - allocator_type, - VoidFunctor()); + heap->AllocObjectWithAllocator( + self, this, this->object_size_, allocator_type, VoidFunctor()); if (add_finalizer && LIKELY(obj != nullptr)) { heap->AddFinalizerReference(self, &obj); if (UNLIKELY(self->IsExceptionPending())) { -- cgit v1.2.3-59-g8ed1b