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) { >