Skip to content

[3.14] gh-134768: Fix definition of mt_continue_should_break() (GH-134769) #134916

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 1 commit into from
May 30, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 30, 2025

In 121ed71, mt_continue_should_break
was changed to be guarded by Py_DEBUG, but it's used in compress_mt_continue_lock_held
with just assert, so it needs to be available when NDEBUG is undefined
too.

Py_DEBUG implies NDEBUG is undefined, so we can check just that.
(cherry picked from commit 2f2bee2)

Co-authored-by: Sam James [email protected]
Fixes: 121ed71

…onGH-134769)

In 121ed71, mt_continue_should_break
was changed to be guarded by `Py_DEBUG`, but it's used in `compress_mt_continue_lock_held`
with just `assert`, so it needs to be available when `NDEBUG` is undefined
too.

`Py_DEBUG` implies `NDEBUG` is undefined, so we can check just that.
(cherry picked from commit 2f2bee2)

Co-authored-by: Sam James <[email protected]>
Fixes: 121ed71
@gpshead gpshead enabled auto-merge (squash) May 30, 2025 04:43
@gpshead gpshead merged commit e0e8f28 into python:3.14 May 30, 2025
44 checks passed
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.

3 participants