summaryrefslogtreecommitdiff
path: root/runtime/mirror/array.h
diff options
context:
space:
mode:
author Dmitrii Ishcheikin <ishcheikin@google.com> 2024-01-16 18:09:15 +0000
committer Dmitrii Ishcheikin <ishcheikin@google.com> 2024-01-24 15:49:35 +0000
commitddfb9fa668c40e6fd6f4c4aa7627e9d3619d59ac (patch)
tree578ef6c6cc4fbd02fbf8dc2c63b037c6b7cd542d /runtime/mirror/array.h
parent1be176f5a78750e2f0e32470f8c83e3d1643954d (diff)
Add visibility attributes in runtime/mirror
Bug: 260881207 Test: presubmit Test: abtd app_compat_drm Test: abtd app_compat_top_100 Test: abtd app_compat_banking Change-Id: I6f5eacb96d0ead8144f090624aa99610f78fe57c
Diffstat (limited to 'runtime/mirror/array.h')
-rw-r--r--runtime/mirror/array.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/runtime/mirror/array.h b/runtime/mirror/array.h
index e7cfb92bdc..b8724cca70 100644
--- a/runtime/mirror/array.h
+++ b/runtime/mirror/array.h
@@ -19,10 +19,11 @@
#include "base/bit_utils.h"
#include "base/enums.h"
+#include "base/macros.h"
#include "obj_ptr.h"
#include "object.h"
-namespace art {
+namespace art HIDDEN {
namespace gc {
enum AllocatorType : char;
@@ -127,15 +128,15 @@ class MANAGED Array : public Object {
template<VerifyObjectFlags kVerifyFlags = kDefaultVerifyFlags>
ALWAYS_INLINE bool CheckIsValidIndex(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_);
- static ObjPtr<Array> CopyOf(Handle<Array> h_this, Thread* self, int32_t new_length)
+ EXPORT static ObjPtr<Array> CopyOf(Handle<Array> h_this, Thread* self, int32_t new_length)
REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_);
protected:
- void ThrowArrayStoreException(ObjPtr<Object> object) REQUIRES_SHARED(Locks::mutator_lock_)
+ EXPORT void ThrowArrayStoreException(ObjPtr<Object> object) REQUIRES_SHARED(Locks::mutator_lock_)
REQUIRES(!Roles::uninterruptible_);
private:
- void ThrowArrayIndexOutOfBoundsException(int32_t index)
+ EXPORT void ThrowArrayIndexOutOfBoundsException(int32_t index)
REQUIRES_SHARED(Locks::mutator_lock_);
// The number of array elements.
@@ -162,13 +163,14 @@ class MANAGED PrimitiveArray : public Array {
using ElementType = T;
- static ObjPtr<PrimitiveArray<T>> Alloc(Thread* self, size_t length)
+ EXPORT static ObjPtr<PrimitiveArray<T>> Alloc(Thread* self, size_t length)
REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_);
- static ObjPtr<PrimitiveArray<T>> AllocateAndFill(Thread* self, const T* data, size_t length)
+ EXPORT static ObjPtr<PrimitiveArray<T>> AllocateAndFill(Thread* self,
+ const T* data,
+ size_t length)
REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_);
-
const T* GetData() const ALWAYS_INLINE REQUIRES_SHARED(Locks::mutator_lock_) {
return reinterpret_cast<const T*>(GetRawData<sizeof(T)>(0));
}
@@ -211,7 +213,7 @@ class MANAGED PrimitiveArray : public Array {
* smaller than element size copies). Arguments are assumed to be within the bounds of the array
* and the arrays non-null.
*/
- void Memcpy(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count)
+ EXPORT void Memcpy(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count)
REQUIRES_SHARED(Locks::mutator_lock_);
private: