diff options
Diffstat (limited to 'runtime/mirror/array.h')
-rw-r--r-- | runtime/mirror/array.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/mirror/array.h b/runtime/mirror/array.h index db6132df59..570dcaa292 100644 --- a/runtime/mirror/array.h +++ b/runtime/mirror/array.h @@ -27,10 +27,24 @@ class MANAGED Array : public Object { // A convenience for code that doesn't know the component size, // and doesn't want to have to work it out itself. static Array* Alloc(Thread* self, Class* array_class, int32_t component_count) + SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { + return AllocInstrumented(self, array_class, component_count); + } + static Array* AllocUninstrumented(Thread* self, Class* array_class, int32_t component_count) + SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + static Array* AllocInstrumented(Thread* self, Class* array_class, int32_t component_count) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); static Array* Alloc(Thread* self, Class* array_class, int32_t component_count, size_t component_size) + SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { + return AllocInstrumented(self, array_class, component_count, component_size); + } + static Array* AllocUninstrumented(Thread* self, Class* array_class, int32_t component_count, + size_t component_size) + SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + static Array* AllocInstrumented(Thread* self, Class* array_class, int32_t component_count, + size_t component_size) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); static Array* CreateMultiArray(Thread* self, Class* element_class, IntArray* dimensions) |