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: TSX lock elision for glibc v12


On Fri, 2013-06-21 at 18:09 +0200, Andi Kleen wrote:
> > -  PTHREAD_MUTEX_KIND_MASK_NP = 3,
> > +  PTHREAD_MUTEX_KIND_MASK_NP = 7,
> > +  /* New internal alias for PTHREAD_MUTEX_DEFAULT-like mutexes.  */
> > +  PTHREAD_MUTEX_DEFAULT_INT_NP = PTHREAD_MUTEX_TIMED_NP,
> > +  /* New internal type used for PTHREAD_MUTEX_NORMAL-like mutexes.  */
> > +  PTHREAD_MUTEX_NORMAL_INT_NP = 5,
> 
> Why internal? It should be external right?

I don't want to change or expose anything externally if I don't have to.
This will make it easier for us to just enable elision without risking
to have to maintain other interfaces, break ABIs, etc.

> Internally the existing don't elide flag should be good enough.

This patch (also see the updated one please) is intended to sit below
any elision patches.  I think that's the right approach because it fixes
an obstacle in our current way of representing types, and could be
useful for stuff besides a particular lock elision implementation.



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