bpo-39877: Py_Initialize() pass tstate to PyEval_InitThreads() (GH-18884)

This commit is contained in:
Victor Stinner 2020-03-09 21:24:14 +01:00 committed by GitHub
parent 3225b9f973
commit 111e4ee52a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 9 deletions

View file

@ -554,7 +554,10 @@ pycore_create_interpreter(_PyRuntimeState *runtime,
_PyGILState_Init(tstate);
/* Create the GIL */
PyEval_InitThreads();
status = _PyEval_InitThreads(tstate);
if (_PyStatus_EXCEPTION(status)) {
return status;
}
*tstate_p = tstate;
return _PyStatus_OK();