< prev index next >
src/hotspot/share/classfile/javaClasses.hpp
Print this page
rev 54327 : 8221477: Inject os/cpu-specific constants into Unsafe from JVM
Summary: Initialize Unsafe os/cpu-specific constants using injection instead of native callouts
Reviewed-by: stuefe
*** 55,64 ****
--- 55,65 ----
#define BASIC_JAVA_CLASSES_DO_PART2(f) \
f(java_lang_System) \
f(java_lang_ClassLoader) \
f(java_lang_Throwable) \
f(java_lang_Thread) \
+ f(jdk_internal_misc_UnsafeConstants) \
f(java_lang_ThreadGroup) \
f(java_lang_AssertionStatusDirectives) \
f(java_lang_ref_SoftReference) \
f(java_lang_invoke_MethodHandle) \
f(java_lang_invoke_DirectMethodHandle) \
*** 455,464 ****
--- 456,474 ----
// Debugging
friend class JavaClasses;
};
+ // Interface to jdk.internal.misc.UnsafeConsants
+
+ class jdk_internal_misc_UnsafeConstants : AllStatic {
+ public:
+ static void set_unsafe_constants();
+ static void compute_offsets() { }
+ static void serialize_offsets(SerializeClosure* f) { }
+ };
+
// Interface to java.lang.ThreadGroup objects
class java_lang_ThreadGroup : AllStatic {
private:
static int _parent_offset;
< prev index next >