Re: Java 21 clinit deadlock

2023-09-15 Thread David Holmes
On 15/09/2023 5:00 pm, Simone Bordet wrote: David, On Thu, Sep 14, 2023 at 4:33 AM David Holmes wrote: I've created a draft PR here: https://github.com/openjdk/jdk/pull/15732 can you apply that patch, build and re-test? Hopefully that will show which thread is doing the missing initializatio

Re: Java 21 clinit deadlock

2023-09-15 Thread Simone Bordet
David, On Thu, Sep 14, 2023 at 4:33 AM David Holmes wrote: > I've created a draft PR here: > > https://github.com/openjdk/jdk/pull/15732 > > can you apply that patch, build and re-test? Hopefully that will show > which thread is doing the missing initialization. We have attached the logs to the

Re: Java 21 clinit deadlock

2023-09-13 Thread David Holmes
Hi Simone, On 13/09/2023 4:16 pm, Simone Bordet wrote: Hi, On Tue, Sep 12, 2023 at 11:44 PM David Holmes wrote: Hi Simone, Thanks for the logs. Unfortunately they shed no light on what is happening. There is no sign of the MutableHttpFields class starting actual initialization, though we ca

Re: Java 21 clinit deadlock

2023-09-12 Thread Simone Bordet
Hi, On Tue, Sep 12, 2023 at 11:44 PM David Holmes wrote: > > Hi Simone, > > Thanks for the logs. Unfortunately they shed no light on what is > happening. There is no sign of the MutableHttpFields class starting > actual initialization, though we can see that it was linked (verified). > And there

Re: Java 21 clinit deadlock

2023-09-12 Thread David Holmes
Hi Simone, Thanks for the logs. Unfortunately they shed no light on what is happening. There is no sign of the MutableHttpFields class starting actual initialization, though we can see that it was linked (verified). And there are no exceptions indicated relevant to the class loading and initi

Re: Java 21 clinit deadlock

2023-09-12 Thread Simone Bordet
David, On Mon, Sep 11, 2023 at 9:29 AM Simone Bordet wrote: > > Hi, > > On Mon, Sep 11, 2023 at 7:22 AM David Holmes wrote: > > I've looked at the dump and there is no sign that the MutableHttpFields > > is actively in use. It suggests to me that class initialization has > > failed but the class

Re: Java 21 clinit deadlock

2023-09-11 Thread Simone Bordet
Hi, On Mon, Sep 11, 2023 at 7:22 AM David Holmes wrote: > I've looked at the dump and there is no sign that the MutableHttpFields > is actively in use. It suggests to me that class initialization has > failed but the class state has not been correctly updated and the > waiters released. There wer

Re: Java 21 clinit deadlock

2023-09-10 Thread David Holmes
On 8/09/2023 12:38 am, Simone Bordet wrote: Hello, We switched the Jetty builds to Java 21 a while ago, and they randomly fail with a hard deadlock during class initialization. We tried to understand if we were doing something wrong, but the code compiles fine, and at first glance there seems t

Java 21 clinit deadlock

2023-09-07 Thread Simone Bordet
Hello, We switched the Jetty builds to Java 21 a while ago, and they randomly fail with a hard deadlock during class initialization. We tried to understand if we were doing something wrong, but the code compiles fine, and at first glance there seems to be nothing wrong with it, but it may well be