Running with -Djdk.tracePinnedThreads=full or -Djdk.tracePinnedThreads=short provides a stack trace when parking a virtual thread pins its carrier. If the reason for the pinning is a native frame, the output is currently:
$CLASS.$METHOD(Native Method)) <== monitors:0
The "<== monitors" suffix should not be printed for native frames.
A secondary issue is that there is no stack trace when there is Panama downcall as there isn't a "native frame" to show in the output.
$CLASS.$METHOD(Native Method)) <== monitors:0
The "<== monitors" suffix should not be printed for native frames.
A secondary issue is that there is no stack trace when there is Panama downcall as there isn't a "native frame" to show in the output.