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: [PATCH 09/14] Add a new pthread_mutexattr_setelision_np interface.


On Tue, 2013-07-02 at 16:44 +0200, Andi Kleen wrote:
> > There is a way to turn it off per lock: You just set the type explicitly
> > to PTHREAD_MUTEX_NORMAL via settype(). 
> 
> Only for mutexes, not for rwlocks.
> 
> But the other way round: turning it on, when it's off, is likely
> more important anyways, and that is missing.

I don't think it's more important anyways, unless you assume that
elision typically won't be turned on by default (which I don't think is
our goal here; we want to make use of it if possible, so we hope that we
can turn it on by default).  We currently also use the same tuning
params for elision-by-default and explicitly eliding locks, so if we
assume it's on by default widely, programmers can't make much of a
difference by turning it on explicitly for particular locks.



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