gh-114203: Optimise simple recursive critical sections (#128126)
Add a fast path to (single-mutex) critical section locking _iff_ the mutex is already held by the currently active, top-most critical section of this thread. This can matter a lot for indirectly recursive critical sections without intervening critical sections.
T
T. Wouters committed
180d417e9f9456defd4c5b53cae678c318287921
Parent: 831b6de
Committed by GitHub <[email protected]>
on 12/23/2024, 12:31:33 PM