RFR (S): 8218446: SuspendAtExit hangs
Robbin Ehn
robbin.ehn at oracle.com
Mon Mar 18 08:26:01 UTC 2019
Hi David!
>
> The fix is quite simple: we put the thread in the _thread_blocked state exactly
> as we already do for the suspend path in
> JavaThread::check_special_condition_for_native_trans.
Thanks for making the S/R saner, I agree totally!
Looks good!
/Robbin
>
> With that fix SuspendAt Exit no longer appears to hang.
>
> Additional testing: (all tests that use suspend() just for good measure) (in
> progress)
> - hotspot
> - vmtestbase/nsk/jdi
> - runtime/Thread/SuspendAtExit.java
> - runtime/handshake/HandshakeWalkSuspendExitTest.java
> - runtime/jni/terminatedThread/TestTerminatedThread.java
> - vmTestbase/nsk/jvmti/GetThreadState/thrstat002/
> - jdk
> - com/sun/jdi/PopAsynchronousTest.java
> - java/nio/channels/SocketChannel/SendUrgentData.java
> - java/lang/management/ThreadMXBean/ThreadMXBeanStateTest.java
> - java/lang/ThreadGroup/Suspend.java
>
> Plus mach5 tiers 1-3.
>
> Thanks,
> David
More information about the hotspot-runtime-dev
mailing list