@@ -2885,11 +2885,10 @@ bool LibraryCallKit::inline_native_notify_jvmti_funcs(address funcAddr, const ch
28852885 Node* thread = ideal.thread ();
28862886 Node* jt_addr = basic_plus_adr (thread, in_bytes (JavaThread::is_in_VTMS_transition_offset ()));
28872887 Node* vt_addr = basic_plus_adr (vt_oop, java_lang_Thread::is_in_VTMS_transition_offset ());
2888- const TypePtr *addr_type = _gvn.type (addr)->isa_ptr ();
28892888
28902889 sync_kit (ideal);
2891- access_store_at (nullptr , jt_addr, addr_type , hide, _gvn.type (hide), T_BOOLEAN, IN_NATIVE | MO_UNORDERED);
2892- access_store_at (nullptr , vt_addr, addr_type , hide, _gvn.type (hide), T_BOOLEAN, IN_NATIVE | MO_UNORDERED);
2890+ access_store_at (nullptr , jt_addr, _gvn. type (jt_addr)-> is_ptr () , hide, _gvn.type (hide), T_BOOLEAN, IN_NATIVE | MO_UNORDERED);
2891+ access_store_at (nullptr , vt_addr, _gvn. type (vt_addr)-> is_ptr () , hide, _gvn.type (hide), T_BOOLEAN, IN_NATIVE | MO_UNORDERED);
28932892
28942893 ideal.sync_kit (this );
28952894 } ideal.end_if ();
@@ -3224,7 +3223,9 @@ bool LibraryCallKit::inline_native_getEventWriter() {
32243223
32253224 // Load the raw epoch value from the threadObj.
32263225 Node* threadObj_epoch_offset = basic_plus_adr (threadObj, java_lang_Thread::jfr_epoch_offset ());
3227- Node* threadObj_epoch_raw = access_load_at (threadObj, threadObj_epoch_offset, TypeRawPtr::BOTTOM, TypeInt::CHAR, T_CHAR,
3226+ Node* threadObj_epoch_raw = access_load_at (threadObj, threadObj_epoch_offset,
3227+ _gvn.type (threadObj_epoch_offset)->isa_ptr (),
3228+ TypeInt::CHAR, T_CHAR,
32283229 IN_HEAP | MO_UNORDERED | C2_MISMATCHED | C2_CONTROL_DEPENDENT_LOAD);
32293230
32303231 // Mask off the excluded information from the epoch.
@@ -3239,7 +3240,8 @@ bool LibraryCallKit::inline_native_getEventWriter() {
32393240
32403241 // Load the raw epoch value from the vthread.
32413242 Node* vthread_epoch_offset = basic_plus_adr (vthread, java_lang_Thread::jfr_epoch_offset ());
3242- Node* vthread_epoch_raw = access_load_at (vthread, vthread_epoch_offset, TypeRawPtr::BOTTOM, TypeInt::CHAR, T_CHAR,
3243+ Node* vthread_epoch_raw = access_load_at (vthread, vthread_epoch_offset, _gvn.type (vthread_epoch_offset)->is_ptr (),
3244+ TypeInt::CHAR, T_CHAR,
32433245 IN_HEAP | MO_UNORDERED | C2_MISMATCHED | C2_CONTROL_DEPENDENT_LOAD);
32443246
32453247 // Mask off the excluded information from the epoch.
@@ -3475,7 +3477,7 @@ void LibraryCallKit::extend_setCurrentThread(Node* jt, Node* thread) {
34753477
34763478 // Load the raw epoch value from the vthread.
34773479 Node* epoch_offset = basic_plus_adr (thread, java_lang_Thread::jfr_epoch_offset ());
3478- Node* epoch_raw = access_load_at (thread, epoch_offset, TypeRawPtr::BOTTOM , TypeInt::CHAR, T_CHAR,
3480+ Node* epoch_raw = access_load_at (thread, epoch_offset, _gvn. type (epoch_offset)-> is_ptr () , TypeInt::CHAR, T_CHAR,
34793481 IN_HEAP | MO_UNORDERED | C2_MISMATCHED | C2_CONTROL_DEPENDENT_LOAD);
34803482
34813483 // Mask off the excluded information from the epoch.
0 commit comments