-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
bpo-43472: Ensure PyInterpreterState_New audit events are raised when called through _xxsubinterpreters module #25506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… called through _xxsubinterpreters module
@@ -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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can delete this comment now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the gilstate issues with subinterpreters have been resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to leave it here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9. |
… called through _xxsubinterpreters module (pythonGH-25506) (cherry picked from commit 7b86e47) Co-authored-by: Steve Dower <steve.dower@python.org>
GH-25508 is a backport of this pull request to the 3.9 branch. |
… called through _xxsubinterpreters module (pythonGH-25506) (cherry picked from commit 7b86e47) Co-authored-by: Steve Dower <steve.dower@python.org>
GH-25509 is a backport of this pull request to the 3.8 branch. |
https://bugs.python.org/issue43472