--- Python/ceval_gil.h +++ Python/ceval_gil.h @@ -135,6 +135,7 @@ static void recreate_gil(struct _gil_runtime_state *gil) { + _Py_ANNOTATE_RWLOCK_RELEASED(&gil->locked, 1); _Py_ANNOTATE_RWLOCK_DESTROY(&gil->locked); /* XXX should we destroy the old OS resources here? */ create_gil(gil);