8000 gh-102304: Fix Non-Debug Builds (gh-102846) · python/cpython@5c75b7a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c75b7a

Browse files
gh-102304: Fix Non-Debug Builds (gh-102846)
Some debug-only code slipped in with gh-102543. #102304
1 parent 28d369e commit 5c75b7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/pystate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,10 @@ _PyRuntimeState_Init(_PyRuntimeState *runtime)
482482
void
483483
_PyRuntimeState_Fini(_PyRuntimeState *runtime)
484484
{
485+
#ifdef Py_REF_DEBUG
485486
/* The reftotal is cleared by _Py_FinalizeRefTotal(). */
486487
assert(runtime->object_state.reftotal == 0);
488+
#endif
487489

488490
if (gilstate_tss_initialized(runtime)) {
489491
gilstate_tss_fini(runtime);

0 commit comments

Comments
 (0)
0