8000 bpo-29941: Assert fixes by Yhg1s · Pull Request #955 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-29941: Assert fixes #955

8000
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
Apr 2, 2017
Merged

bpo-29941: Assert fixes #955

merged 1 commit into from
Apr 2, 2017

Conversation

Yhg1s
Copy link
Member
@Yhg1s Yhg1s commented Apr 1, 2017

Make a non-Py_DEBUG, asserts-enabled build of CPython possible. This means
making sure helper functions are defined when NDEBUG is not defined, not
just when Py_DEBUG is defined.

Also fix a division-by-zero in obmalloc.c that went unnoticed because in
Py_DEBUG mode, elsize is never zero.

(cherry picked from commit a00c3fd and 06bb487)

Make a non-Py_DEBUG, asserts-enabled build of CPython possible. This means
making sure helper functions are defined when NDEBUG is not defined, not
just when Py_DEBUG is defined.

Also fix a division-by-zero in obmalloc.c that went unnoticed because in
Py_DEBUG mode, elsize is never zero.

(cherry picked from commit a00c3fd and 06bb487)
@Yhg1s Yhg1s changed the title bpo-29941: Assert fixes (#886) bpo-29941: Assert fixes Apr 1, 2017
@Yhg1s Yhg1s merged commit 90e3518 into python:3.6 Apr 2, 2017
@Yhg1s Yhg1s deleted the backport-a00c3fd-3.6 branch April 2, 2017 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0