gh-101758: Fix the wasm Buildbots (gh-101943)

They were broken by gh-101920.

https://github.com/python/cpython/issues/101758
This commit is contained in:
Eric Snow 2023-02-15 17:54:05 -07:00 committed by GitHub
parent b365d88465
commit 3dea4ba6c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View file

@ -197,6 +197,7 @@ gilstate_tss_clear(_PyRuntimeState *runtime)
}
#ifndef NDEBUG
static inline int tstate_is_alive(PyThreadState *tstate);
static inline int
@ -204,6 +205,7 @@ tstate_is_bound(PyThreadState *tstate)
{
return tstate->_status.bound && !tstate->_status.unbound;
}
#endif // !NDEBUG
static void bind_gilstate_tstate(PyThreadState *);
static void unbind_gilstate_tstate(PyThreadState *);
@ -1119,6 +1121,7 @@ _PyInterpreterState_LookUpID(int64_t requested_id)
/* the per-thread runtime state */
/********************************/
#ifndef NDEBUG
static inline int
tstate_is_alive(PyThreadState *tstate)
{
@ -1127,6 +1130,7 @@ tstate_is_alive(PyThreadState *tstate)
!tstate->_status.cleared &&
!tstate->_status.finalizing);
}
#endif
//----------