Skip to content

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