Skip to content

JDK 27 can hung on shutdown. #1472

@andresluuk

Description

@andresluuk

Please provide a brief summary of the bug

If class loading happens turning JVM shutdown on JDK 27 then the JVM shutdown can hung for 90 sec. Feels like some timeout somewhere?
Nothing works on that time. I found out that I can get a stacktrace out of the hung with jhsdb jstack, which I added into the zip example zip-s README.

I tried to add the bug into: https://bugreport.java.com/bugreport/preview but the page has been down for a few days, ie it tells a weird error without any details and does not accept any submits.

Did you test with the latest update version?

  • Yes

Please provide steps to reproduce where possible

I made an example application that hungs on shutdown.
jdk27crash.zip

Expected Results

The application exits in a reasonable time (less then 10sec)

Actual Results

The application is hung for 90 sec, before exiting without doing anything visibile for that 90 sec.

What Java Version are you using?

c:\work\temp\jdk27crash>java --version openjdk 27-ea 2026-09-15 OpenJDK Runtime Environment (build 27-ea+22-2010) OpenJDK 64-Bit Server VM (build 27-ea+22-2010, mixed mode, sharing)

What is your operating system and platform?

I saw this error on ubuntu but I managed to reproduce it on my local windows 11.

How did you install Java?

downloaded the zip from https://jdk.java.net/27/

Did it work before?

When I started the investigation in our CI I had not seen this error on earlier JVMs.
But now I tryed my example app on JDK 26, and it also hung that way as with 27.

Did you test with other Java versions?

The repro also hung on JDK 26.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingjbs:reportedSomeone from our org has reported it to OpenJDKlinuxupstreamwindows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions