diff options
Diffstat (limited to 'runtime/mirror/class.h')
-rw-r--r-- | runtime/mirror/class.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h index ed1aad39d2..82077dc52a 100644 --- a/runtime/mirror/class.h +++ b/runtime/mirror/class.h @@ -378,11 +378,12 @@ class MANAGED Class : public StaticStorageBase { // Creates a raw object instance but does not invoke the default constructor. Object* AllocObject(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { - return AllocObjectInstrumented(self); + return Alloc<kMovingCollector, true>(self); } - Object* AllocObjectUninstrumented(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - Object* AllocObjectInstrumented(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + // Creates a raw object instance but does not invoke the default constructor. + template <bool kIsMovable, bool kIsInstrumented> + Object* Alloc(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); bool IsVariableSize() const { // Classes and arrays vary in size, and so the object_size_ field cannot |