diff options
author | 2024-01-24 15:31:51 +0000 | |
---|---|---|
committer | 2024-01-24 18:03:45 +0000 | |
commit | a7c77b389f6705a53250f2076f294e7e888fa911 (patch) | |
tree | 9169447affc1b2bc50c5657171eda46aebd2e0d9 | |
parent | c70da3ff38405ce73c2f0feb74117135ed61a92b (diff) |
Add visibility attributes in runtime/l*
Bug: 260881207
Test: presubmit
Test: abtd app_compat_drm
Test: abtd app_compat_top_100
Test: abtd app_compat_banking
Change-Id: I0a3d7b31dbe87e78ddf663b0914829913d3d3021
-rw-r--r-- | runtime/linear_alloc-inl.h | 2 | ||||
-rw-r--r-- | runtime/linear_alloc.h | 3 | ||||
-rw-r--r-- | runtime/lock_word-inl.h | 2 | ||||
-rw-r--r-- | runtime/lock_word.h | 6 |
4 files changed, 7 insertions, 6 deletions
diff --git a/runtime/linear_alloc-inl.h b/runtime/linear_alloc-inl.h index 7c81352cd9..fba24c8042 100644 --- a/runtime/linear_alloc-inl.h +++ b/runtime/linear_alloc-inl.h @@ -22,7 +22,7 @@ #include "base/gc_visited_arena_pool.h" #include "thread-current-inl.h" -namespace art { +namespace art HIDDEN { inline void LinearAlloc::SetFirstObject(void* begin, size_t bytes) const { DCHECK(track_allocations_); diff --git a/runtime/linear_alloc.h b/runtime/linear_alloc.h index c81077abfc..ce073cce13 100644 --- a/runtime/linear_alloc.h +++ b/runtime/linear_alloc.h @@ -19,9 +19,10 @@ #include "base/arena_allocator.h" #include "base/casts.h" +#include "base/macros.h" #include "base/mutex.h" -namespace art { +namespace art HIDDEN { class ArenaPool; diff --git a/runtime/lock_word-inl.h b/runtime/lock_word-inl.h index 4a2a293400..4108b1a6e8 100644 --- a/runtime/lock_word-inl.h +++ b/runtime/lock_word-inl.h @@ -20,7 +20,7 @@ #include "lock_word.h" #include "monitor_pool.h" -namespace art { +namespace art HIDDEN { inline uint32_t LockWord::ThinLockOwner() const { DCHECK_EQ(GetState(), kThinLocked); diff --git a/runtime/lock_word.h b/runtime/lock_word.h index 21b40b781b..b717b1f9b6 100644 --- a/runtime/lock_word.h +++ b/runtime/lock_word.h @@ -23,9 +23,10 @@ #include <android-base/logging.h> #include "base/bit_utils.h" +#include "base/macros.h" #include "read_barrier.h" -namespace art { +namespace art HIDDEN { namespace mirror { class Object; } // namespace mirror @@ -318,9 +319,8 @@ class LockWord { // The encoded value holding all the state. uint32_t value_; }; -std::ostream& operator<<(std::ostream& os, LockWord::LockState code); +EXPORT std::ostream& operator<<(std::ostream& os, LockWord::LockState code); } // namespace art - #endif // ART_RUNTIME_LOCK_WORD_H_ |