Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out [v2]

2024-11-09 Thread Quan Anh Mai
On Fri, 8 Nov 2024 16:59:48 GMT, Quan Anh Mai wrote: >> Hi, >> >> This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. >> The lock-step spin lock is implemented as with `lock` being an >> `AtomicInteger`: >> >> // Keep the 2 threads operating on the same scope >>

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out [v2]

2024-11-08 Thread Maurizio Cimadamore
On Fri, 8 Nov 2024 16:59:48 GMT, Quan Anh Mai wrote: >> Hi, >> >> This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. >> The lock-step spin lock is implemented as with `lock` being an >> `AtomicInteger`: >> >> // Keep the 2 threads operating on the same scope >>

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out [v2]

2024-11-08 Thread Quan Anh Mai
> Hi, > > This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. > The lock-step spin lock is implemented as with `lock` being an > `AtomicInteger`: > > // Keep the 2 threads operating on the same scope > int k = lock.getAndAdd(1) + 1; > while (k != i * 2) { >

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Quan Anh Mai
On Fri, 8 Nov 2024 11:56:08 GMT, Quan Anh Mai wrote: > Hi, > > This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. > The lock-step spin lock is implemented as with `lock` being an > `AtomicInteger`: > > // Keep the 2 threads operating on the same scope > int k =

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Jorn Vernee
On Fri, 8 Nov 2024 11:56:08 GMT, Quan Anh Mai wrote: > Hi, > > This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. > The lock-step spin lock is implemented as with `lock` being an > `AtomicInteger`: > > // Keep the 2 threads operating on the same scope > int k =

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Maurizio Cimadamore
On Fri, 8 Nov 2024 12:22:54 GMT, Maurizio Cimadamore wrote: >> Hi, >> >> This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. >> The lock-step spin lock is implemented as with `lock` being an >> `AtomicInteger`: >> >> // Keep the 2 threads operating on the same scop

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Quan Anh Mai
On Fri, 8 Nov 2024 12:22:54 GMT, Maurizio Cimadamore wrote: >> Hi, >> >> This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. >> The lock-step spin lock is implemented as with `lock` being an >> `AtomicInteger`: >> >> // Keep the 2 threads operating on the same scop

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Maurizio Cimadamore
On Fri, 8 Nov 2024 11:56:08 GMT, Quan Anh Mai wrote: > Hi, > > This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. > The lock-step spin lock is implemented as with `lock` being an > `AtomicInteger`: > > // Keep the 2 threads operating on the same scope > int k =

RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Quan Anh Mai
Hi, This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. The lock-step spin lock is implemented as with `lock` being an `AtomicInteger`: // Keep the 2 threads operating on the same scope int k = lock.getAndAdd(1) + 1; while (k != i * 2) { Thread.onSpinWa