FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-149225: Expose Py_CriticalSection in Stable ABI by encukou · Pull Request #149227 · python/cpython · GitHub

Repository navigation

gh-149225: Expose Py_CriticalSection in Stable ABI - #149227

Merged
encukou merged 7 commits into
python:mainfrom
encukou:critical-section-stable-abi-xs
May 4, 2026
Merged

encukou merged 7 commits into
python:mainfrom
encukou:critical-section-stable-abi-xs

Conversation

encukou commented May 1, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

read-the-docs-community Bot commented May 1, 2026 •
edited
Loading

Copy link
Copy Markdown

hugovk added the 3.15 bugs and security fixes label May 1, 2026

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Comment thread Include/critical_section.h Outdated
// Operations that need to lock two objects at once must use
// `Py_BEGIN_CRITICAL_SECTION2()`. You *CANNOT* use nested critical sections
// to lock more than one object at once, because the inner critical section
// may suspend the outer critical sections. This API does not provide a way

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
// may suspend the outer critical sections. This API does not provide a way
// may suspend the outer critical sections. This API does not provide a way

@@ -0,0 +1,2 @@
:c:type:`PyCriticalSection` and related functions are added to the Stable
ABI.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you copy also this paragraph to What's New in Python 3.15 > C API changes > New features?

encukou requested a review from AA-Turner as a code owner May 4, 2026 12:53

vstinner commented May 4, 2026

Copy link
Copy Markdown
Member

Tests / Windows / Build and test (x64, switch-case) (pull_request): Failing after 23m

Oh, the "FAIL: test_got_eof (test.test_ssl.ThreadedTests.test_got_eof)" failure is related to my recent OpenSSL 4 changes. I wrote #149366 to fix the test.

encukou merged commit 6ca5cdb into python:main May 4, 2026
98 of 102 checks passed
encukou deleted the critical-section-stable-abi-xs branch May 4, 2026 15:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.15 bugs and security fixes release-blocker

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL