We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a3263f commit b04003cCopy full SHA for b04003c
Python/pylifecycle.c
@@ -2435,7 +2435,7 @@ new_interpreter(PyThreadState **tstate_p,
2435
2436
/* Issue #10915, #15751: The GIL API doesn't work with multiple
2437
interpreters: disable PyGILState_Check(). */
2438
- runtime->gilstate.check_enabled = 0;
+ _Py_atomic_store_int_relaxed(&runtime->gilstate.check_enabled, 0);
2439
2440
// XXX Might new_interpreter() have been called without the GIL held?
2441
PyThreadState *save_tstate = _PyThreadState_GET();
0 commit comments