[Bug nptl/33704] RFE: Relax failing pthread_mutex_trylock to load with relaxed MO.

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Mon Jan 5 19:02:20 GMT 2026


https://sourceware.org/bugzilla/show_bug.cgi?id=33704

--- Comment #22 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The release/2.38/master branch has been updated by Sunil Pandey
<skpgkp2@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7b8f497fe4ccac805ac4b20ff64946f0a5bbe4e3

commit 7b8f497fe4ccac805ac4b20ff64946f0a5bbe4e3
Author: Sunil K Pandey <sunil.k.pandey@intel.com>
Date:   Tue Dec 9 08:57:44 2025 -0800

    nptl: Optimize trylock for high cache contention workloads (BZ #33704)

    Check lock availability before acquisition to reduce cache line
    bouncing.  Significantly improves trylock throughput on multi-core
    systems under heavy contention.

    Tested on x86_64.

    Fixes BZ #33704.

    Co-authored-by: Alex M Wells <alex.m.wells@intel.com>
    Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
    (cherry picked from commit 63716823dbad9482e09972907ae98e9cb00f9b86)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list