{{ message }}
bpo-36854: Move GC runtime state from _PyRuntimeState to PyInterpreterState.#13219
Closed
ericsnowcurrently wants to merge 3 commits into
Closed
bpo-36854: Move GC runtime state from _PyRuntimeState to PyInterpreterState.#13219ericsnowcurrently wants to merge 3 commits into
ericsnowcurrently wants to merge 3 commits into
Conversation
4bdd07f to
1607996
Compare
May 10, 2019 17:45
vstinner
requested changes
May 10, 2019
vstinner
left a comment
Member
There was a problem hiding this comment.
I like what I see: -) But I have some comments on the actual implementation.
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: |
Sorry, something went wrong.
Member
|
I wrote a different change, PR #17287, that I just merged. So I close this old PR. Thanks anyway Eric for working on this, my work is partially based on yours ;-) |
Sorry, something went wrong.
Member
Author
|
Thanks for doing it!!! |
Sorry, something went wrong.
Member
You're welcome. |
Sorry, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
Note: as part of this PR, I've made sure that Python threads (created by the threading module) are marked as "deleted" earlier in finalization. That marker is how joining threads get unblocked. It was happening in
PyThreadState_Delete()but now it will happen inPyThreadState_Clear(). This is necessary to ensure that the callback gets called before much interpreter/runtime finalization happens. (It could impact daemon threads, but we already can't guarantee behavior for those once finalization starts.)https://bugs.python.org/issue36854