mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-102304: Fix Non-Debug Builds (gh-102846)
Some debug-only code slipped in with gh-102543. https://github.com/python/cpython/issues/102304
This commit is contained in:
parent
28d369e070
commit
5c75b7a91c
1 changed files with 2 additions and 0 deletions
|
@ -482,8 +482,10 @@ _PyRuntimeState_Init(_PyRuntimeState *runtime)
|
||||||
void
|
void
|
||||||
_PyRuntimeState_Fini(_PyRuntimeState *runtime)
|
_PyRuntimeState_Fini(_PyRuntimeState *runtime)
|
||||||
{
|
{
|
||||||
|
#ifdef Py_REF_DEBUG
|
||||||
/* The reftotal is cleared by _Py_FinalizeRefTotal(). */
|
/* The reftotal is cleared by _Py_FinalizeRefTotal(). */
|
||||||
assert(runtime->object_state.reftotal == 0);
|
assert(runtime->object_state.reftotal == 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (gilstate_tss_initialized(runtime)) {
|
if (gilstate_tss_initialized(runtime)) {
|
||||||
gilstate_tss_fini(runtime);
|
gilstate_tss_fini(runtime);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue