summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dmitrii Ishcheikin <ishcheikin@google.com> 2024-01-24 15:28:12 +0000
committer Dmitrii Ishcheikin <ishcheikin@google.com> 2024-01-24 18:04:11 +0000
commitc5266fbb0f9b0be10c92f82a6b78d50715e80e30 (patch)
tree56af7327a0df025508b85c07d3e842840a67618f
parenta7c77b389f6705a53250f2076f294e7e888fa911 (diff)
Add visibility attributes in runtime/j*
Bug: 260881207 Test: presubmit Test: abtd app_compat_drm Test: abtd app_compat_top_100 Test: abtd app_compat_banking Change-Id: I3edb48d24aac0da006ffd2d634ede22045880a8c
-rw-r--r--runtime/java_frame_root_info.cc2
-rw-r--r--runtime/java_frame_root_info.h2
-rw-r--r--runtime/javaheapprof/javaheapsampler.cc2
-rw-r--r--runtime/javaheapprof/javaheapsampler.h2
-rw-r--r--runtime/jdwp_provider.h3
-rw-r--r--runtime/jni_id_type.h6
-rw-r--r--runtime/jvalue-inl.h2
-rw-r--r--runtime/jvalue.h2
8 files changed, 12 insertions, 9 deletions
diff --git a/runtime/java_frame_root_info.cc b/runtime/java_frame_root_info.cc
index 9a0f184a83..b752211e38 100644
--- a/runtime/java_frame_root_info.cc
+++ b/runtime/java_frame_root_info.cc
@@ -18,7 +18,7 @@
#include "stack.h"
-namespace art {
+namespace art HIDDEN {
void JavaFrameRootInfo::Describe(std::ostream& os) const {
const StackVisitor* visitor = stack_visitor_;
diff --git a/runtime/java_frame_root_info.h b/runtime/java_frame_root_info.h
index c2b4493814..885000994c 100644
--- a/runtime/java_frame_root_info.h
+++ b/runtime/java_frame_root_info.h
@@ -24,7 +24,7 @@
#include "base/macros.h"
#include "gc_root.h"
-namespace art {
+namespace art HIDDEN {
class StackVisitor;
diff --git a/runtime/javaheapprof/javaheapsampler.cc b/runtime/javaheapprof/javaheapsampler.cc
index 74671347c7..959934bedf 100644
--- a/runtime/javaheapprof/javaheapsampler.cc
+++ b/runtime/javaheapprof/javaheapsampler.cc
@@ -23,7 +23,7 @@
#endif
#include "runtime.h"
-namespace art {
+namespace art HIDDEN {
size_t HeapSampler::NextGeoDistRandSample() {
// Make sure that rng_ and geo_dist are thread safe by acquiring a lock to access.
diff --git a/runtime/javaheapprof/javaheapsampler.h b/runtime/javaheapprof/javaheapsampler.h
index 41514726cd..b7742c0f5e 100644
--- a/runtime/javaheapprof/javaheapsampler.h
+++ b/runtime/javaheapprof/javaheapsampler.h
@@ -22,7 +22,7 @@
#include "base/mutex.h"
#include "mirror/object.h"
-namespace art {
+namespace art HIDDEN {
class HeapSampler {
public:
diff --git a/runtime/jdwp_provider.h b/runtime/jdwp_provider.h
index c7711ecceb..6ae3ce2e13 100644
--- a/runtime/jdwp_provider.h
+++ b/runtime/jdwp_provider.h
@@ -19,9 +19,10 @@
#include <ios>
+#include "base/macros.h"
#include "runtime_globals.h"
-namespace art {
+namespace art HIDDEN {
enum class JdwpProvider {
kNone,
diff --git a/runtime/jni_id_type.h b/runtime/jni_id_type.h
index a8908fc901..0092f22d44 100644
--- a/runtime/jni_id_type.h
+++ b/runtime/jni_id_type.h
@@ -19,7 +19,9 @@
#include <iosfwd>
-namespace art {
+#include "base/macros.h"
+
+namespace art HIDDEN {
enum class JniIdType {
// All Jni method/field IDs are pointers to the corresponding Art{Field,Method} type
@@ -35,7 +37,7 @@ enum class JniIdType {
kDefault = kPointer,
};
-std::ostream& operator<<(std::ostream& os, JniIdType rhs);
+EXPORT std::ostream& operator<<(std::ostream& os, JniIdType rhs);
} // namespace art
#endif // ART_RUNTIME_JNI_ID_TYPE_H_
diff --git a/runtime/jvalue-inl.h b/runtime/jvalue-inl.h
index 5bd4f176f6..7c38700a15 100644
--- a/runtime/jvalue-inl.h
+++ b/runtime/jvalue-inl.h
@@ -21,7 +21,7 @@
#include "obj_ptr-inl.h"
-namespace art {
+namespace art HIDDEN {
inline void JValue::SetL(ObjPtr<mirror::Object> new_l) {
l = new_l.Ptr();
diff --git a/runtime/jvalue.h b/runtime/jvalue.h
index d03749c6ee..7a44247c94 100644
--- a/runtime/jvalue.h
+++ b/runtime/jvalue.h
@@ -24,7 +24,7 @@
#include "obj_ptr.h"
-namespace art {
+namespace art HIDDEN {
namespace mirror {
class Object;
} // namespace mirror