Kaydet (Commit) ce7da6c5 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

Forward port bugfix:

[ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code)

(note that this only happens in a threads-disabled build).
üst 484d9a40
...@@ -53,7 +53,9 @@ static PyInterpreterState *interp_head = NULL; ...@@ -53,7 +53,9 @@ static PyInterpreterState *interp_head = NULL;
PyThreadState *_PyThreadState_Current = NULL; PyThreadState *_PyThreadState_Current = NULL;
PyThreadFrameGetter _PyThreadState_GetFrame = NULL; PyThreadFrameGetter _PyThreadState_GetFrame = NULL;
#ifdef WITH_THREAD
static void _PyGILState_NoteThreadState(PyThreadState* tstate); static void _PyGILState_NoteThreadState(PyThreadState* tstate);
#endif
PyInterpreterState * PyInterpreterState *
...@@ -188,7 +190,9 @@ PyThreadState_New(PyInterpreterState *interp) ...@@ -188,7 +190,9 @@ PyThreadState_New(PyInterpreterState *interp)
tstate->c_profileobj = NULL; tstate->c_profileobj = NULL;
tstate->c_traceobj = NULL; tstate->c_traceobj = NULL;
#ifdef WITH_THREAD
_PyGILState_NoteThreadState(tstate); _PyGILState_NoteThreadState(tstate);
#endif
HEAD_LOCK(); HEAD_LOCK();
tstate->next = interp->tstate_head; tstate->next = interp->tstate_head;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment