[RFC 0/4] Add a new mutex type PTHREAD_MUTEX_QUEUESPINNER_NP

Carlos O'Donell carlos@redhat.com
Thu Jul 5 20:12:00 GMT 2018


On 07/02/2018 04:11 AM, Kemi Wang wrote:
> The pthread adaptive mutex is designed based-on the truth that the lock
> probably would be released after a few of CPU cycles in most cases.
> Especially for the case: the applications code is well-behaved with a short
> critical section that is highly contended. Thus, spinning on the lock for
> a while instead of calling into the kernel to block immediately can help
> to improve the system performance.

This patch set is going to take a while to review.

We are currently freezing the ABI/API for glibc 2.28 release on August 1st.

Are you OK if we delay the inclusion of this feature to 2.29 once master
reopens?

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list