diff options
author | 2024-01-05 15:15:50 +0000 | |
---|---|---|
committer | 2024-01-09 15:16:24 +0000 | |
commit | 54adbe49e7fbec9be419978e4b5bba02640fe74a (patch) | |
tree | 8c87c840b38d0e1044baedd70741cda1891a62ed | |
parent | cb5edd3e57388a2853d013b9ad465aeb3c0bcbe1 (diff) |
Add visibility attributes in runtime/gc/accounting
Bug: 260881207
Test: presubmit
Test: abtd app_compat_drm
Test: abtd app_compat_top_100
Test: abtd app_compat_banking
Change-Id: I8696d872e69e1d38b639e0e204ababe0299690c6
22 files changed, 26 insertions, 24 deletions
diff --git a/runtime/gc/accounting/atomic_stack.h b/runtime/gc/accounting/atomic_stack.h index a90a31963b..074978d0af 100644 --- a/runtime/gc/accounting/atomic_stack.h +++ b/runtime/gc/accounting/atomic_stack.h @@ -37,7 +37,7 @@ // - Multiple calls to AtomicPushBack*() and AtomicBumpBack() may be made concurrently, // provided no other calls are made at the same time. -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/bitmap-inl.h b/runtime/gc/accounting/bitmap-inl.h index a4273e5ff6..20133bea80 100644 --- a/runtime/gc/accounting/bitmap-inl.h +++ b/runtime/gc/accounting/bitmap-inl.h @@ -26,7 +26,7 @@ #include "base/atomic.h" #include "base/bit_utils.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/bitmap.cc b/runtime/gc/accounting/bitmap.cc index 5a52a82ab6..690a4955f7 100644 --- a/runtime/gc/accounting/bitmap.cc +++ b/runtime/gc/accounting/bitmap.cc @@ -24,7 +24,7 @@ #include "gc/collector/mark_compact.h" #include "jit/jit_memory_region.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/bitmap.h b/runtime/gc/accounting/bitmap.h index f413243094..5a2cd062b4 100644 --- a/runtime/gc/accounting/bitmap.h +++ b/runtime/gc/accounting/bitmap.h @@ -29,7 +29,7 @@ #include "base/mem_map.h" #include "runtime_globals.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/card_table-inl.h b/runtime/gc/accounting/card_table-inl.h index cc24a1adff..213836e768 100644 --- a/runtime/gc/accounting/card_table-inl.h +++ b/runtime/gc/accounting/card_table-inl.h @@ -26,7 +26,7 @@ #include "base/mem_map.h" #include "space_bitmap.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/card_table.cc b/runtime/gc/accounting/card_table.cc index 248a6f1982..f247f5638b 100644 --- a/runtime/gc/accounting/card_table.cc +++ b/runtime/gc/accounting/card_table.cc @@ -27,7 +27,7 @@ #include "heap_bitmap.h" #include "runtime.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/card_table.h b/runtime/gc/accounting/card_table.h index 5f4675d1cf..72cf57119c 100644 --- a/runtime/gc/accounting/card_table.h +++ b/runtime/gc/accounting/card_table.h @@ -23,7 +23,7 @@ #include "base/mem_map.h" #include "runtime_globals.h" -namespace art { +namespace art HIDDEN { namespace mirror { class Object; diff --git a/runtime/gc/accounting/card_table_test.cc b/runtime/gc/accounting/card_table_test.cc index b34a883f52..bbedb81852 100644 --- a/runtime/gc/accounting/card_table_test.cc +++ b/runtime/gc/accounting/card_table_test.cc @@ -27,7 +27,7 @@ #include "scoped_thread_state_change-inl.h" #include "thread_pool.h" -namespace art { +namespace art HIDDEN { namespace mirror { class Object; diff --git a/runtime/gc/accounting/heap_bitmap-inl.h b/runtime/gc/accounting/heap_bitmap-inl.h index edf2e5bd65..38dc73b4c6 100644 --- a/runtime/gc/accounting/heap_bitmap-inl.h +++ b/runtime/gc/accounting/heap_bitmap-inl.h @@ -21,7 +21,7 @@ #include "space_bitmap-inl.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/heap_bitmap.cc b/runtime/gc/accounting/heap_bitmap.cc index 4a3902e83d..b1d4d8e775 100644 --- a/runtime/gc/accounting/heap_bitmap.cc +++ b/runtime/gc/accounting/heap_bitmap.cc @@ -19,7 +19,7 @@ #include "gc/accounting/space_bitmap-inl.h" #include "gc/space/space.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/heap_bitmap.h b/runtime/gc/accounting/heap_bitmap.h index a5f4499103..93272ff6c9 100644 --- a/runtime/gc/accounting/heap_bitmap.h +++ b/runtime/gc/accounting/heap_bitmap.h @@ -24,7 +24,7 @@ #include "base/macros.h" #include "space_bitmap.h" -namespace art { +namespace art HIDDEN { namespace gc { class Heap; diff --git a/runtime/gc/accounting/mod_union_table-inl.h b/runtime/gc/accounting/mod_union_table-inl.h index f0a82e0c88..1c8a84193d 100644 --- a/runtime/gc/accounting/mod_union_table-inl.h +++ b/runtime/gc/accounting/mod_union_table-inl.h @@ -21,7 +21,7 @@ #include "gc/space/space.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/mod_union_table.cc b/runtime/gc/accounting/mod_union_table.cc index 85f7164b58..6bad61fd87 100644 --- a/runtime/gc/accounting/mod_union_table.cc +++ b/runtime/gc/accounting/mod_union_table.cc @@ -32,7 +32,7 @@ #include "space_bitmap-inl.h" #include "thread-current-inl.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/mod_union_table.h b/runtime/gc/accounting/mod_union_table.h index 1fa602fe2b..ca53c53065 100644 --- a/runtime/gc/accounting/mod_union_table.h +++ b/runtime/gc/accounting/mod_union_table.h @@ -28,7 +28,7 @@ #include <set> #include <vector> -namespace art { +namespace art HIDDEN { namespace mirror { class Object; diff --git a/runtime/gc/accounting/mod_union_table_test.cc b/runtime/gc/accounting/mod_union_table_test.cc index f1f10d2adf..396e117f0c 100644 --- a/runtime/gc/accounting/mod_union_table_test.cc +++ b/runtime/gc/accounting/mod_union_table_test.cc @@ -26,7 +26,7 @@ #include "thread-current-inl.h" #include "thread_list.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/read_barrier_table.h b/runtime/gc/accounting/read_barrier_table.h index 44cdb5e02e..d5f7f08cd2 100644 --- a/runtime/gc/accounting/read_barrier_table.h +++ b/runtime/gc/accounting/read_barrier_table.h @@ -25,7 +25,7 @@ #include "gc/space/space.h" #include "runtime_globals.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/remembered_set.cc b/runtime/gc/accounting/remembered_set.cc index e4ee3052bf..6551cbbf26 100644 --- a/runtime/gc/accounting/remembered_set.cc +++ b/runtime/gc/accounting/remembered_set.cc @@ -33,7 +33,7 @@ #include "space_bitmap-inl.h" #include "thread.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/remembered_set.h b/runtime/gc/accounting/remembered_set.h index 8b390dfaf6..4a611df2cb 100644 --- a/runtime/gc/accounting/remembered_set.h +++ b/runtime/gc/accounting/remembered_set.h @@ -25,7 +25,7 @@ #include <set> #include <vector> -namespace art { +namespace art HIDDEN { namespace gc { namespace collector { diff --git a/runtime/gc/accounting/space_bitmap-inl.h b/runtime/gc/accounting/space_bitmap-inl.h index e7825e6953..4f9e5a3652 100644 --- a/runtime/gc/accounting/space_bitmap-inl.h +++ b/runtime/gc/accounting/space_bitmap-inl.h @@ -26,7 +26,7 @@ #include "base/atomic.h" #include "base/bit_utils.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/space_bitmap.cc b/runtime/gc/accounting/space_bitmap.cc index 5033e3f8dd..fc7c4a70d4 100644 --- a/runtime/gc/accounting/space_bitmap.cc +++ b/runtime/gc/accounting/space_bitmap.cc @@ -28,7 +28,7 @@ #include "mirror/object-inl.h" #include "mirror/object_array.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { diff --git a/runtime/gc/accounting/space_bitmap.h b/runtime/gc/accounting/space_bitmap.h index 5b9e55b5c9..8c3796db3e 100644 --- a/runtime/gc/accounting/space_bitmap.h +++ b/runtime/gc/accounting/space_bitmap.h @@ -27,7 +27,7 @@ #include "base/mem_map.h" #include "runtime_globals.h" -namespace art { +namespace art HIDDEN { namespace mirror { class Class; @@ -45,7 +45,9 @@ class SpaceBitmap { // Initialize a space bitmap so that it points to a bitmap large enough to cover a heap at // heap_begin of heap_capacity bytes, where objects are guaranteed to be kAlignment-aligned. - static SpaceBitmap Create(const std::string& name, uint8_t* heap_begin, size_t heap_capacity); + EXPORT static SpaceBitmap Create(const std::string& name, + uint8_t* heap_begin, + size_t heap_capacity); // Initialize a space bitmap using the provided mem_map as the live bits. Takes ownership of the // mem map. The address range covered starts at heap_begin and is of size equal to heap_capacity. @@ -55,7 +57,7 @@ class SpaceBitmap { uint8_t* heap_begin, size_t heap_capacity); - ~SpaceBitmap(); + EXPORT ~SpaceBitmap(); // Return the bitmap word index corresponding to memory offset (relative to // `HeapBegin()`) `offset`. diff --git a/runtime/gc/accounting/space_bitmap_test.cc b/runtime/gc/accounting/space_bitmap_test.cc index 0285ba52ec..44229c94ab 100644 --- a/runtime/gc/accounting/space_bitmap_test.cc +++ b/runtime/gc/accounting/space_bitmap_test.cc @@ -25,7 +25,7 @@ #include "runtime_globals.h" #include "space_bitmap-inl.h" -namespace art { +namespace art HIDDEN { namespace gc { namespace accounting { |