gh-136003: Execute pre-finalization callbacks in a loop (GH-136004)

This commit is contained in:
Peter Bierma 2025-09-18 08:29:12 -04:00 committed by GitHub
parent d6a6fe2a5b
commit 2191497933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 281 additions and 43 deletions

View file

@ -1461,7 +1461,7 @@ init_threadstate(_PyThreadStateImpl *_tstate,
assert(tstate->prev == NULL);
assert(tstate->_whence == _PyThreadState_WHENCE_NOTSET);
assert(whence >= 0 && whence <= _PyThreadState_WHENCE_EXEC);
assert(whence >= 0 && whence <= _PyThreadState_WHENCE_THREADING_DAEMON);
tstate->_whence = whence;
assert(id > 0);