mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-43472: Ensure PyInterpreterState_New audit events are raised when called through _xxsubinterpreters module (GH-25506)
This commit is contained in:
parent
139c232f38
commit
7b86e47617
3 changed files with 6 additions and 3 deletions
|
@ -2025,7 +2025,7 @@ interp_create(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
}
|
||||
|
||||
// Create and initialize the new interpreter.
|
||||
PyThreadState *save_tstate = PyThreadState_Swap(NULL);
|
||||
PyThreadState *save_tstate = PyThreadState_Get();
|
||||
// XXX Possible GILState issues?
|
||||
PyThreadState *tstate = _Py_NewInterpreter(isolated);
|
||||
PyThreadState_Swap(save_tstate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue