This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCHv2] powerpc: Spinlock optimization and cleanup


On 30/09/15 17:28, Paul E. Murphy wrote:

---8<---
This patch optimizes powerpc spinlock implementation by:

...

The glibc pthread spinlock semantics is weaker than what
posix requires, I'm wondering if this is expected to stay
or glibc might want to switch to stronger semantics.

is it worthwhile to add optimized asm with weak semantics
for other targets that currently use the generic c code?

(the issue is that for correct pthread_spin_trylock behavior
the lock should be seqcst instead of acquire and the unlock
should be release instead of barrier+store otherwise trylock
can spuriously report locked state).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]