]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-150902: Optimize PyCriticalSection2 to skip locking the same locks held by the...
authorDaniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
Tue, 16 Jun 2026 16:56:37 +0000 (17:56 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2026 16:56:37 +0000 (16:56 +0000)
commitc2ca7724af94df6e078a4b2e86d1be8c410d9940
tree31e2b5552b771de1b1befd5257f100f494193df2
parent7edcaedc533df437101fd0d40a9c857c7671277a
gh-150902: Optimize PyCriticalSection2 to skip locking the same locks held by the current CS2

This mimics an optimization already present for the single-mutex critical section.
Include/internal/pycore_critical_section.h
Misc/NEWS.d/next/Core_and_Builtins/2026-06-08-13-14-42.gh-issue-150902.-CWZ66.rst [new file with mode: 0644]
Python/critical_section.c