Switch GIL to disabled by default in free-threaded build so that the
free-threaded CIs catch thread-safety issues.
{
assert(!gil_created(gil));
#ifdef Py_GIL_DISABLED
- // gh-116329: Once it is safe to do so, change this condition to
- // (enable_gil == _PyConfig_GIL_ENABLE), so the GIL is disabled by default.
- gil->enabled = _PyInterpreterState_GetConfig(interp)->enable_gil != _PyConfig_GIL_DISABLE;
+ gil->enabled = _PyInterpreterState_GetConfig(interp)->enable_gil == _PyConfig_GIL_ENABLE;
#endif
create_gil(gil);
assert(gil_created(gil));