Skip to content

gh-135380: enhance critical section held assertions #135381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2025

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Jun 11, 2025

@kumaraditya303 kumaraditya303 requested a review from vstinner June 12, 2025 11:14
@vstinner
Copy link
Member

I kept it similar to mutex lock held function which uses Py_DEBUG not NDEBUG.

IMO it's worth it to replace #ifdef Py_DEBUG with #ifndef NDEBUG to support building Python with assertions in release mode: https://docs.python.org/dev/using/configure.html#cmdoption-with-assertions But I suggest doing that in a follow-up PR.

@kumaraditya303 kumaraditya303 merged commit a8ec511 into python:main Jun 20, 2025
42 checks passed
@kumaraditya303 kumaraditya303 deleted the critical branch June 20, 2025 17:13
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy