On 15/12/2025 05:41, Benjamin Peterson wrote:
Greetings,
I saw class initialization will be preemptible in many cases in JDK 26, which
is exciting. I believe my application is hitting a deadlock due to virtual
threads pinned in class loading on OpenJDK 25.0.1.
I captured a stack dump of the deadlocked application, and I can share the
interesting parts of the dump. For background, there are 32 cores, so the
virtual thread scheduler pool has 32 carrier threads.
The startup when using MR JARs is indeed complicated. Would it be
possible to reveal a bit more of the stack traces, specifically the call
of loadClass? Also could you capture the output jcmd
Thread.vthread_scheduler as that may quickly confirm your analysis.
-Alan