[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 18:44:11 GMT 2026


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

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

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

commit c96b4ed1e26f06ebc56c17ba2c29d1647be68c1e
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