diff options
author | T. Wouters <thomas@python.org> | 2024-12-23 12:31:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-23 12:31:33 (GMT) |
commit | 180d417e9f9456defd4c5b53cae678c318287921 (patch) | |
tree | cdcc1e622b3e5a11f61d739dd514dde31048e643 /Python/Python-ast.c | |
parent | 831b6de6d725c697f2f61fd35c4448cd8a9354ff (diff) | |
download | cpython-180d417e9f9456defd4c5b53cae678c318287921.zip cpython-180d417e9f9456defd4c5b53cae678c318287921.tar.gz cpython-180d417e9f9456defd4c5b53cae678c318287921.tar.bz2 |
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.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions