◐ Shell
clean mode source ↗

[3.15] gh-150902: Optimize PyCriticalSection2 to skip locking the same locks held by the current CS2 by miss-islington · Pull Request #151554 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@miss-islington

@miss-islington miss-islington commented

Jun 16, 2026

edited by bedevere-app Bot

Loading

Copy link Copy Markdown

Contributor

This mimics an optimization already present for the single-mutex critical section.
(cherry picked from commit c2ca772)

Co-authored-by: Daniele Parmeggiani 8658291+dpdani@users.noreply.github.com

… locks held by the current CS2

This mimics an optimization already present for the single-mutex critical section.
(cherry picked from commit c2ca772)

Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@miss-islington @dpdani