Issue #8063: Call _PyGILState_Init() earlier in Py_InitializeEx().
This commit is contained in:
parent
6009ece0ed
commit
6961bd690e
|
@ -12,6 +12,8 @@ What's New in Python 3.2 Alpha 2?
|
||||||
Core and Builtins
|
Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Issue #8063: Call _PyGILState_Init() earlier in Py_InitializeEx().
|
||||||
|
|
||||||
- Issue #9612: The set object is now 64-bit clean under Windows.
|
- Issue #9612: The set object is now 64-bit clean under Windows.
|
||||||
|
|
||||||
- Issue #8202: sys.argv[0] is now set to '-m' instead of '-c' when searching
|
- Issue #8202: sys.argv[0] is now set to '-m' instead of '-c' when searching
|
||||||
|
|
|
@ -206,6 +206,11 @@ Py_InitializeEx(int install_sigs)
|
||||||
Py_FatalError("Py_Initialize: can't make first thread");
|
Py_FatalError("Py_Initialize: can't make first thread");
|
||||||
(void) PyThreadState_Swap(tstate);
|
(void) PyThreadState_Swap(tstate);
|
||||||
|
|
||||||
|
/* auto-thread-state API, if available */
|
||||||
|
#ifdef WITH_THREAD
|
||||||
|
_PyGILState_Init(interp, tstate);
|
||||||
|
#endif /* WITH_THREAD */
|
||||||
|
|
||||||
_Py_ReadyTypes();
|
_Py_ReadyTypes();
|
||||||
|
|
||||||
if (!_PyFrame_Init())
|
if (!_PyFrame_Init())
|
||||||
|
@ -288,11 +293,6 @@ Py_InitializeEx(int install_sigs)
|
||||||
Py_FatalError(
|
Py_FatalError(
|
||||||
"Py_Initialize: can't initialize sys standard streams");
|
"Py_Initialize: can't initialize sys standard streams");
|
||||||
|
|
||||||
/* auto-thread-state API, if available */
|
|
||||||
#ifdef WITH_THREAD
|
|
||||||
_PyGILState_Init(interp, tstate);
|
|
||||||
#endif /* WITH_THREAD */
|
|
||||||
|
|
||||||
if (!Py_NoSiteFlag)
|
if (!Py_NoSiteFlag)
|
||||||
initsite(); /* Module site */
|
initsite(); /* Module site */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue