@@ -444,7 +444,7 @@ JvmtiVTMSTransitionDisabler::start_VTMS_transition(jthread vthread, bool is_moun
444444
445445 // Do not allow suspends inside VTMS transitions.
446446 // Block while transitions are disabled or there are suspend requests.
447- int64_t thread_id = java_lang_Thread::thread_id (vth ()); // Cannot use oops while blocked.
447+ ThreadID thread_id = java_lang_Thread::thread_id (vth ()); // Cannot use oops while blocked.
448448
449449 if (_VTMS_transition_disable_for_all_count > 0 ||
450450 java_lang_Thread::VTMS_transition_disable_count (vth ()) > 0 ||
@@ -505,7 +505,7 @@ JvmtiVTMSTransitionDisabler::finish_VTMS_transition(jthread vthread, bool is_mou
505505 if (!sync_protocol_enabled ()) {
506506 return ;
507507 }
508- int64_t thread_id = java_lang_Thread::thread_id (vt);
508+ ThreadID thread_id = java_lang_Thread::thread_id (vt);
509509
510510 // Unblock waiting VTMS transition disablers.
511511 if (_VTMS_transition_disable_for_one_count > 0 ||
@@ -706,7 +706,7 @@ JvmtiVTSuspender::register_all_vthreads_resume() {
706706
707707void
708708JvmtiVTSuspender::register_vthread_suspend (oop vt) {
709- int64_t id = java_lang_Thread::thread_id (vt);
709+ ThreadID id = java_lang_Thread::thread_id (vt);
710710 MonitorLocker ml (JvmtiVTMSTransition_lock);
711711
712712 if (_SR_mode == SR_all) {
@@ -723,7 +723,7 @@ JvmtiVTSuspender::register_vthread_suspend(oop vt) {
723723
724724void
725725JvmtiVTSuspender::register_vthread_resume (oop vt) {
726- int64_t id = java_lang_Thread::thread_id (vt);
726+ ThreadID id = java_lang_Thread::thread_id (vt);
727727 MonitorLocker ml (JvmtiVTMSTransition_lock);
728728
729729 if (_SR_mode == SR_all) {
@@ -743,7 +743,7 @@ JvmtiVTSuspender::register_vthread_resume(oop vt) {
743743}
744744
745745bool
746- JvmtiVTSuspender::is_vthread_suspended (int64_t thread_id) {
746+ JvmtiVTSuspender::is_vthread_suspended (ThreadID thread_id) {
747747 bool suspend_is_needed =
748748 (_SR_mode == SR_all && !_not_suspended_list->contains (thread_id)) ||
749749 (_SR_mode == SR_ind && _suspended_list->contains (thread_id));
0 commit comments