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: sem_trywait changes broke sparc


On Mon, 2015-01-26 at 13:20 +0100, Torvald Riegel wrote:
> I'm not sure whether this works as-is for pre-v9 sparc, or you need to
> adapt -- I would have to study the pre-v9 atomics definition again to
> know this.  AFAIR, atomics do work but you don't use a custom lock in
> the semaphore, but one from a global array of locks.  So, using just the
> atomics might lead to decreased contention between unrelated semaphores.

I'll have to correct that.  This statement isn't correct with
process-shared semaphores because the global array of locks used for
normal atomics on pre-v9 is per-process.  I think you have to maintain a
custom version of the semaphore to solve that issue.


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