diff --git a/src/hotspot/share/classfile/javaClasses.cpp b/src/hotspot/share/classfile/javaClasses.cpp index 8fe8f56e05e..dddfa3435ec 100644 --- a/src/hotspot/share/classfile/javaClasses.cpp +++ b/src/hotspot/share/classfile/javaClasses.cpp @@ -1498,11 +1498,9 @@ JavaThreadStatus java_lang_Thread_FieldHolder::get_thread_status(oop holder) { int java_lang_Thread_Constants::_static_VTHREAD_GROUP_offset = 0; -int java_lang_Thread_Constants::_static_NOT_SUPPORTED_CLASSLOADER_offset = 0; #define THREAD_CONSTANTS_STATIC_FIELDS_DO(macro) \ - macro(_static_VTHREAD_GROUP_offset, k, "VTHREAD_GROUP", threadgroup_signature, true); \ - macro(_static_NOT_SUPPORTED_CLASSLOADER_offset, k, "NOT_SUPPORTED_CLASSLOADER", classloader_signature, true); + macro(_static_VTHREAD_GROUP_offset, k, "VTHREAD_GROUP", threadgroup_signature, true); void java_lang_Thread_Constants::compute_offsets() { assert(_static_VTHREAD_GROUP_offset == 0, "offsets should be initialized only once"); @@ -1523,11 +1521,6 @@ oop java_lang_Thread_Constants::get_VTHREAD_GROUP() { return base->obj_field(_static_VTHREAD_GROUP_offset); } -oop java_lang_Thread_Constants::get_NOT_SUPPORTED_CLASSLOADER() { - InstanceKlass* k = vmClasses::Thread_Constants_klass(); - oop base = k->static_field_base_raw(); - return base->obj_field(_static_NOT_SUPPORTED_CLASSLOADER_offset); -} int java_lang_Thread::_holder_offset; int java_lang_Thread::_name_offset; diff --git a/src/hotspot/share/classfile/javaClasses.hpp b/src/hotspot/share/classfile/javaClasses.hpp index dd7b2b67c60..484d9ebfee1 100644 --- a/src/hotspot/share/classfile/javaClasses.hpp +++ b/src/hotspot/share/classfile/javaClasses.hpp @@ -475,7 +475,6 @@ class java_lang_Thread_Constants : AllStatic { public: static oop get_VTHREAD_GROUP(); - static oop get_NOT_SUPPORTED_CLASSLOADER(); friend class JavaClasses; }; diff --git a/src/hotspot/share/prims/jni.cpp b/src/hotspot/share/prims/jni.cpp index fcb6024bac2..9588ae995f8 100644 --- a/src/hotspot/share/prims/jni.cpp +++ b/src/hotspot/share/prims/jni.cpp @@ -102,7 +102,7 @@ #include "jfr/jfr.hpp" #endif -static jint CurrentVersion = JNI_VERSION_20; +static jint CurrentVersion = JNI_VERSION_21; #if defined(_WIN32) && !defined(USE_VECTORED_EXCEPTION_HANDLING) extern LONG WINAPI topLevelExceptionFilter(_EXCEPTION_POINTERS* ); diff --git a/src/hotspot/share/prims/jvmti.xml b/src/hotspot/share/prims/jvmti.xml index b0c045f9322..456876fbcb9 100644 --- a/src/hotspot/share/prims/jvmti.xml +++ b/src/hotspot/share/prims/jvmti.xml @@ -1,7 +1,7 @@