From 7c89f49c2c542df1a5780fb851e2ef0e0909f48f Mon Sep 17 00:00:00 2001 From: Hans Boehm Date: Mon, 19 Aug 2024 21:32:19 +0000 Subject: Revert "Object.clone() allocates more movable objects" This reverts commit a5001fed23788c966fd87048d7f17ba8c0b51914. Reason for revert: b/360363656 Change-Id: Ibfea46976bb6434d728c69160edb5904ab7708aa --- runtime/mirror/array.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime/mirror/array.h') diff --git a/runtime/mirror/array.h b/runtime/mirror/array.h index 1fb7f2e955..7a0976ab48 100644 --- a/runtime/mirror/array.h +++ b/runtime/mirror/array.h @@ -44,13 +44,14 @@ class MANAGED Array : public Object { // Allocates an array with the given properties, if kFillUsable is true the array will be of at // least component_count size, however, if there's usable space at the end of the allocation the // array will fill it. - template + template ALWAYS_INLINE static ObjPtr Alloc(Thread* self, ObjPtr array_class, int32_t component_count, size_t component_size_shift, gc::AllocatorType allocator_type) - REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_); + REQUIRES_SHARED(Locks::mutator_lock_) + REQUIRES(!Roles::uninterruptible_); static ObjPtr CreateMultiArray(Thread* self, Handle element_class, -- cgit v1.2.3-59-g8ed1b