[PATCHv2 1/2] nptl: Add adapt_count parameter to lll_unlock_elision

Andreas Schwab schwab@linux-m68k.org
Thu Sep 3 16:47:00 GMT 2015


"Paul E. Murphy" <murphyp@linux.vnet.ibm.com> writes:

>  #ifndef lll_unlock_elision
> -#define lll_unlock_elision(a,b) ({ lll_unlock (a,b); 0; })
> +#define lll_unlock_elision(a,b,c) ({ lll_unlock (a,b); 0; })
>  #endif
>  
>  static int
> @@ -63,7 +63,7 @@ __pthread_mutex_unlock_usercnt (mutex, decr)
>    else if (__glibc_likely (type == PTHREAD_MUTEX_TIMED_ELISION_NP))
>      {
>        /* Don't reset the owner/users fields for elision.  */
> -      return lll_unlock_elision (mutex->__data.__lock,
> +      return lll_unlock_elision (mutex->__data.__lock, mutex->__data.__elision,
>  				      PTHREAD_MUTEX_PSHARED (mutex));

That doesn't fit together.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-alpha mailing list