From 9b81ac36e161fd993eab17b43b93a96e8c63b5cc Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 16 May 2019 16:47:08 +0100 Subject: Add default argument kIsInstrumented=true. kIsInstrumented=false is reserved for use by specialized entrypoints which are used only when we can ensure that the code is not instrumented. So add the default argument to simplify all other callers. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I3419795794fec9a1733ab3ad698b6415dbac679d --- runtime/mirror/class-alloc-inl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 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 03c422fc79..cab3c5174b 100644 --- a/runtime/mirror/class-alloc-inl.h +++ b/runtime/mirror/class-alloc-inl.h @@ -72,11 +72,11 @@ inline ObjPtr Class::Alloc(Thread* self, gc::AllocatorType allocator_typ } inline ObjPtr Class::AllocObject(Thread* self) { - return Alloc(self, Runtime::Current()->GetHeap()->GetCurrentAllocator()); + return Alloc(self, Runtime::Current()->GetHeap()->GetCurrentAllocator()); } inline ObjPtr Class::AllocNonMovableObject(Thread* self) { - return Alloc(self, Runtime::Current()->GetHeap()->GetCurrentNonMovingAllocator()); + return Alloc(self, Runtime::Current()->GetHeap()->GetCurrentNonMovingAllocator()); } } // namespace mirror -- cgit v1.2.3-59-g8ed1b