8000 gh-102304: Fix Non-Debug Builds by ericsnowcurrently · Pull Request #102846 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-102304: Fix Non-Debug Builds #102846

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
Mar 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Guard for Py_REF_DEBUG.
  • Loading branch information
ericsnowcurrently committed Mar 20, 2023
commit b60d101eb577e84e3657f5d154d49b160542b16b
2 changes: 2 additions & 0 deletions Python/pystate.c
4C94
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,10 @@ _PyRuntimeState_Init(_PyRuntimeState *runtime)
void
_PyRuntimeState_Fini(_PyRuntimeState *runtime)
{
#ifdef Py_REF_DEBUG
/* The reftotal is cleared by _Py_FinalizeRefTotal(). */
assert(runtime->object_state.reftotal == 0);
#endif

if (gilstate_tss_initialized(runtime)) {
gilstate_tss_fini(runtime);
Expand Down
0