diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-02-16 00:54:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-16 00:54:05 (GMT) |
commit | 3dea4ba6c1b9237893d23574f931f33c940b74e8 (patch) | |
tree | 7a4afd9349b3a6aeff39b6b642fef76ae1a0aa13 /Python | |
parent | b365d88465d9228ce4e9e0be20b88e9e4056ad88 (diff) | |
download | cpython-3dea4ba6c1b9237893d23574f931f33c940b74e8.zip cpython-3dea4ba6c1b9237893d23574f931f33c940b74e8.tar.gz cpython-3dea4ba6c1b9237893d23574f931f33c940b74e8.tar.bz2 |
gh-101758: Fix the wasm Buildbots (gh-101943)
They were broken by gh-101920.
https://github.com/python/cpython/issues/101758
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pystate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 4770caa..32b17fd 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -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 //---------- |