mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
Forward port bugfix:
[ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code) (note that this only happens in a threads-disabled build).
This commit is contained in:
parent
484d9a409a
commit
ce7da6c5e9
|
@ -53,7 +53,9 @@ static PyInterpreterState *interp_head = NULL;
|
|||
PyThreadState *_PyThreadState_Current = NULL;
|
||||
PyThreadFrameGetter _PyThreadState_GetFrame = NULL;
|
||||
|
||||
#ifdef WITH_THREAD
|
||||
static void _PyGILState_NoteThreadState(PyThreadState* tstate);
|
||||
#endif
|
||||
|
||||
|
||||
PyInterpreterState *
|
||||
|
@ -188,7 +190,9 @@ PyThreadState_New(PyInterpreterState *interp)
|
|||
tstate->c_profileobj = NULL;
|
||||
tstate->c_traceobj = NULL;
|
||||
|
||||
#ifdef WITH_THREAD
|
||||
_PyGILState_NoteThreadState(tstate);
|
||||
#endif
|
||||
|
||||
HEAD_LOCK();
|
||||
tstate->next = interp->tstate_head;
|
||||
|
|
Loading…
Reference in a new issue