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-36854: Move _PyRuntimeState.gc to PyInterpreterState #17287

Merged
merged 1 commit into from
Nov 20, 2019
Merged

bpo-36854: Move _PyRuntimeState.gc to PyInterpreterState #17287

merged 1 commit into from
Nov 20, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 20, 2019

  • Rename _PyGC_InitializeRuntime() to _PyGC_InitState()
  • finalize_interp_clear() now also calls _PyGC_Fini() in
    subinterpreters.

https://bugs.python.org/issue36854

* Rename _PyGC_InitializeRuntime() to _PyGC_InitState()
* finalize_interp_clear() now also calls _PyGC_Fini() in
  subinterpreters.
@vstinner
Copy link
Member Author

cc @ericsnowcurrently @pablogsal @nanjekyejoannah: That's a great achievement/milestone for the implementation of subinterpreters ;-)

Eric: I managed to reorganize Python thread state finalization to prevent having to call tstate->on_delete() earlier (you called it in PyThreadState_Clear()).

@vstinner vstinner merged commit 7247407 into python:master Nov 20, 2019
@vstinner vstinner deleted the move_gcstate branch November 20, 2019 11:25
pablogsal added a commit to pablogsal/cpython that referenced this pull request Dec 3, 2019
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
)

* Rename _PyGC_InitializeRuntime() to _PyGC_InitState()
* finalize_interp_clear() now also calls _PyGC_Fini() in
  subinterpreters (clear the GC state).
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
)

* Rename _PyGC_InitializeRuntime() to _PyGC_InitState()
* finalize_interp_clear() now also calls _PyGC_Fini() in
  subinterpreters (clear the GC state).
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.

3 participants