Re: [PATCH 1/2] selftests/mm: replace atomic_bool with pthread_barrier_t

2024-10-18 Thread Edward Liaw
On Fri, Oct 18, 2024 at 7:37 AM Ryan Roberts wrote: > > On 03/10/2024 22:17, Edward Liaw wrote: > > Swaps synchronization primitive with pthread_barrier, so that > > stdatomic.h does not need to be included. > > > > The synchronization is needed on Android ARM64; we see a deadlock with > > pthread

Re: [PATCH 1/2] selftests/mm: replace atomic_bool with pthread_barrier_t

2024-10-18 Thread Ryan Roberts
On 03/10/2024 22:17, Edward Liaw wrote: > Swaps synchronization primitive with pthread_barrier, so that > stdatomic.h does not need to be included. > > The synchronization is needed on Android ARM64; we see a deadlock with > pthread_create when the parent thread races forward before the child has

Re: [PATCH 1/2] selftests/mm: replace atomic_bool with pthread_barrier_t

2024-10-06 Thread Muhammad Usama Anjum
On 10/4/24 2:17 AM, Edward Liaw wrote: > Swaps synchronization primitive with pthread_barrier, so that > stdatomic.h does not need to be included. > > The synchronization is needed on Android ARM64; we see a deadlock with > pthread_create when the parent thread races forward before the child has >

[PATCH 1/2] selftests/mm: replace atomic_bool with pthread_barrier_t

2024-10-03 Thread Edward Liaw
Swaps synchronization primitive with pthread_barrier, so that stdatomic.h does not need to be included. The synchronization is needed on Android ARM64; we see a deadlock with pthread_create when the parent thread races forward before the child has a chance to start doing work. Fixes: 8c864371b2a1