X Tutup
The Wayback Machine - https://web.archive.org/web/20221223171523/https://github.com/python/cpython/pull/25506
Skip to content
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

bpo-43472: Ensure PyInterpreterState_New audit events are raised when called through _xxsubinterpreters module #25506

Merged
merged 1 commit into from Apr 21, 2021

Conversation

zooba
Copy link
Member

@zooba zooba commented Apr 21, 2021

@@ -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?
Copy link
Member Author

@zooba zooba Apr 21, 2021

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?

Copy link
Member

@ericsnowcurrently ericsnowcurrently Apr 21, 2021

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.

Copy link
Member Author

@zooba zooba Apr 21, 2021

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

Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

LGTM

@zooba zooba merged commit 7b86e47 into python:master Apr 21, 2021
12 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Apr 21, 2021

Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒🤖

@zooba zooba deleted the bpo-43472 branch Apr 21, 2021
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 21, 2021
… called through _xxsubinterpreters module (pythonGH-25506)

(cherry picked from commit 7b86e47)

Co-authored-by: Steve Dower <steve.dower@python.org>
@bedevere-bot
Copy link

bedevere-bot commented Apr 21, 2021

GH-25508 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 21, 2021
… called through _xxsubinterpreters module (pythonGH-25506)

(cherry picked from commit 7b86e47)

Co-authored-by: Steve Dower <steve.dower@python.org>
@bedevere-bot
Copy link

bedevere-bot commented Apr 21, 2021

GH-25509 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request Apr 21, 2021
… called through _xxsubinterpreters module (GH-25506)

(cherry picked from commit 7b86e47)

Co-authored-by: Steve Dower <steve.dower@python.org>
vstinner pushed a commit that referenced this pull request Apr 28, 2021
… called through _xxsubinterpreters module (GH-25506) (GH-25508)

(cherry picked from commit 7b86e47)

Co-authored-by: Steve Dower <steve.dower@python.org>

Co-authored-by: Steve Dower <steve.dower@python.org>
kreathon pushed a commit to kreathon/cpython that referenced this pull request May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants
X Tutup