I have a case which is reproducible quite often, JVM hangs and takes all the CPU resources (>95%) and if I try to take a stack trace with jstack it fails.
When I try with -F option, I get something like:
Debugger attached successfully.
Server compiler detected.
JVM version is 20.6-b01