8298081: DiagnoseSyncOnValueBasedClasses doesn't report useful information for virtual threads

Reviewed-by: gziemski, pchilanomate
This commit is contained in:
David Holmes 2022-12-16 01:08:30 +00:00
parent 2bb727c4ea
commit a3364612f7
4 changed files with 51 additions and 6 deletions

View file

@ -1758,6 +1758,14 @@ void JavaThread::print_vthread_stack_on(outputStream* st) {
}
}
void JavaThread::print_active_stack_on(outputStream* st) {
if (is_vthread_mounted()) {
print_vthread_stack_on(st);
} else {
print_stack_on(st);
}
}
#if INCLUDE_JVMTI
// Rebind JVMTI thread state from carrier to virtual or from virtual to carrier.
JvmtiThreadState* JavaThread::rebind_to_jvmti_thread_state_of(oop thread_oop) {