The mechanism used by DiagnoseSyncOnValueBasedClasses to show where the sync occurs only reports platform/carrier thread stack details. That is no use if the code is being executed by a virtual thread. We can use the code being introduced by JDK-8292674 for JNI error/warning reporting to show the virtual thread stack instead.
- relates to
-
JDK-8292674 ReportJNIFatalError should print all java frames
-
- Resolved
-