@@ -105,8 +105,6 @@ int VMStructs::_interpreter_frame_bcp_offset = 0;
105105unsigned char VMStructs::_unsigned5_base = 0 ;
106106const void ** VMStructs::_call_stub_return_addr = NULL ;
107107const void * VMStructs::_call_stub_return = NULL ;
108- const void * VMStructs::_interpreted_frame_valid_start = NULL ;
109- const void * VMStructs::_interpreted_frame_valid_end = NULL ;
110108
111109jfieldID VMStructs::_eetop;
112110jfieldID VMStructs::_tid;
@@ -133,7 +131,6 @@ void VMStructs::init(CodeCache* libjvm) {
133131 if (libjvm != NULL ) {
134132 _libjvm = libjvm;
135133 initOffsets ();
136- initJvmFunctions ();
137134 }
138135}
139136
@@ -479,11 +476,16 @@ void VMStructs::resolveOffsets() {
479476 && _comp_task_offset >= 0
480477 && _comp_method_offset >= 0 ;
481478
482- _has_class_loader_data = _class_loader_data_offset >= 0
483- && _class_loader_data_next_offset == sizeof (uintptr_t ) * 8 + 8
484- && _methods_offset >= 0
485- && _klass != NULL
486- && _lock_func != NULL && _unlock_func != NULL ;
479+ if (VM::hotspot_version () == 8 ) {
480+ _lock_func = (LockFunc)_libjvm->findSymbol (" _ZN7Monitor28lock_without_safepoint_checkEv" );
481+ _unlock_func = (LockFunc)_libjvm->findSymbol (" _ZN7Monitor6unlockEv" );
482+ _has_class_loader_data = _class_loader_data_offset >= 0
483+ && _class_loader_data_next_offset == sizeof (uintptr_t ) * 8 + 8
484+ && _methods_offset >= 0
485+ && _klass != NULL
486+ && _lock_func != NULL
487+ && _unlock_func != NULL ;
488+ }
487489
488490#if defined(__x86_64__) || defined(__i386__)
489491 _interpreter_frame_bcp_offset = VM::hotspot_version () >= 11 ? -8 : VM::hotspot_version () == 8 ? -7 : 0 ;
@@ -556,21 +558,6 @@ void VMStructs::resolveOffsets() {
556558 }
557559}
558560
559- void VMStructs::initJvmFunctions () {
560- if (VM::hotspot_version () == 8 ) {
561- _lock_func = (LockFunc)_libjvm->findSymbol (" _ZN7Monitor28lock_without_safepoint_checkEv" );
562- _unlock_func = (LockFunc)_libjvm->findSymbol (" _ZN7Monitor6unlockEv" );
563- }
564-
565- if (VM::hotspot_version () > 0 ) {
566- CodeBlob* blob = _libjvm->findBlob (" _ZNK5frame26is_interpreted_frame_validEP10JavaThread" );
567- if (blob != NULL ) {
568- _interpreted_frame_valid_start = blob->_start ;
569- _interpreted_frame_valid_end = blob->_end ;
570- }
571- }
572- }
573-
574561void VMStructs::patchSafeFetch () {
575562 // Workarounds for JDK-8307549 and JDK-8321116
576563 if (WX_MEMORY && VM::hotspot_version () == 17 ) {
0 commit comments