RFR: 8274597: [TESTBUG] Two of the dnd tests times out and fails
Sergey Bylokhov
serb at openjdk.java.net
Fri Oct 1 19:22:26 UTC 2021
On Fri, 1 Oct 2021 08:22:50 GMT, Manukumar V S <mvs at openjdk.org> wrote:
> I can see three non-daemon threads in 'WAITING' state(given below). So looks like 'AWT-Shutdown' thread created by AWTAutoShutdown.java is the hook which is getting blocked. But I think this is an expected behaviour only as it will block this thread until all AWT tasks are complete.
This issue is unrelated to the non-daemon threads since the System.exit() is called, it should exit the whole JVM. But before exit it executes some number of registered ShutdownHook, we need to check what ShutdownHook is executed and why it hangs. The AWT-Shutdown is not a hook, it is a thread which prevents vm exit if there are some UI peers, but it does ont prevent the System.exit().
-------------
PR: https://git.openjdk.java.net/jdk/pull/5777
More information about the client-libs-dev
mailing list