diff options
author | 2024-01-24 16:30:34 +0000 | |
---|---|---|
committer | 2024-01-24 18:00:11 +0000 | |
commit | 9b327f2232290a46942e53bcdfe80b41e2c9fbc0 (patch) | |
tree | d0559017f7e9b72fbefea9d9f9131919e4cd766c | |
parent | e3436a1261f258cc38824c2b6734f9b3126e1316 (diff) |
Add visibility attributes in runtime/o*
Bug: 260881207
Test: presubmit
Test: abtd app_compat_drm
Test: abtd app_compat_top_100
Test: abtd app_compat_banking
Change-Id: Ic091089f8bbcf146bf1bf416b29d4edcd3c3b0eb
-rw-r--r-- | runtime/obj_ptr-inl.h | 2 | ||||
-rw-r--r-- | runtime/obj_ptr.h | 2 | ||||
-rw-r--r-- | runtime/object_callbacks.h | 2 | ||||
-rw-r--r-- | runtime/object_lock.cc | 2 | ||||
-rw-r--r-- | runtime/object_lock.h | 7 | ||||
-rw-r--r-- | runtime/offsets.cc | 2 | ||||
-rw-r--r-- | runtime/offsets.h | 3 |
7 files changed, 10 insertions, 10 deletions
diff --git a/runtime/obj_ptr-inl.h b/runtime/obj_ptr-inl.h index ae13465e59..039c32baa2 100644 --- a/runtime/obj_ptr-inl.h +++ b/runtime/obj_ptr-inl.h @@ -23,7 +23,7 @@ #include "obj_ptr.h" #include "thread-current-inl.h" -namespace art { +namespace art HIDDEN { template<class MirrorType> inline uintptr_t ObjPtr<MirrorType>::GetCurrentTrimedCookie() { diff --git a/runtime/obj_ptr.h b/runtime/obj_ptr.h index 7e52a50582..9c756a12d9 100644 --- a/runtime/obj_ptr.h +++ b/runtime/obj_ptr.h @@ -27,7 +27,7 @@ // Always inline ObjPtr methods even in debug builds. #define OBJPTR_INLINE __attribute__ ((always_inline)) -namespace art { +namespace art HIDDEN { constexpr bool kObjPtrPoisoning = kIsDebugBuild; diff --git a/runtime/object_callbacks.h b/runtime/object_callbacks.h index d36913b891..485e3a8b80 100644 --- a/runtime/object_callbacks.h +++ b/runtime/object_callbacks.h @@ -19,7 +19,7 @@ #include "base/macros.h" -namespace art { +namespace art HIDDEN { namespace mirror { class Object; template<class MirrorType> class HeapReference; diff --git a/runtime/object_lock.cc b/runtime/object_lock.cc index 9e02484f15..a4215497c3 100644 --- a/runtime/object_lock.cc +++ b/runtime/object_lock.cc @@ -20,7 +20,7 @@ #include "mirror/object-inl.h" #include "monitor.h" -namespace art { +namespace art HIDDEN { template <typename T> ObjectLock<T>::ObjectLock(Thread* self, Handle<T> object) : self_(self), obj_(object) { diff --git a/runtime/object_lock.h b/runtime/object_lock.h index 15b763a3ab..0f6f39fff0 100644 --- a/runtime/object_lock.h +++ b/runtime/object_lock.h @@ -21,16 +21,16 @@ #include "base/macros.h" #include "handle.h" -namespace art { +namespace art HIDDEN { class Thread; template <typename T> class ObjectLock { public: - ObjectLock(Thread* self, Handle<T> object) REQUIRES_SHARED(Locks::mutator_lock_); + EXPORT ObjectLock(Thread* self, Handle<T> object) REQUIRES_SHARED(Locks::mutator_lock_); - ~ObjectLock() REQUIRES_SHARED(Locks::mutator_lock_); + EXPORT ~ObjectLock() REQUIRES_SHARED(Locks::mutator_lock_); void WaitIgnoringInterrupts() REQUIRES_SHARED(Locks::mutator_lock_); @@ -65,7 +65,6 @@ class ObjectTryLock { DISALLOW_COPY_AND_ASSIGN(ObjectTryLock); }; - } // namespace art #endif // ART_RUNTIME_OBJECT_LOCK_H_ diff --git a/runtime/offsets.cc b/runtime/offsets.cc index f59ed881af..e02d060aef 100644 --- a/runtime/offsets.cc +++ b/runtime/offsets.cc @@ -18,7 +18,7 @@ #include <ostream> -namespace art { +namespace art HIDDEN { std::ostream& operator<<(std::ostream& os, const Offset& offs) { return os << offs.Int32Value(); diff --git a/runtime/offsets.h b/runtime/offsets.h index 7974111851..17480519b4 100644 --- a/runtime/offsets.h +++ b/runtime/offsets.h @@ -20,9 +20,10 @@ #include <iosfwd> #include "base/enums.h" +#include "base/macros.h" #include "runtime_globals.h" -namespace art { +namespace art HIDDEN { // Allow the meaning of offsets to be strongly typed. class Offset { |