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-36225: Finalise subinterpreters in Py_FinalizeEx() #17575

Open
wants to merge 5 commits into
base: master
from

Conversation

@LewisGaul
Copy link

LewisGaul commented Dec 11, 2019

  • Added testcase in Programs/_testembed.c - previously failing, now passing
  • Loop over interpreters in Py_FinalizeEx() and call Py_EndInterpreter() (apart from on main interpreter)
  • New flag _PyRuntime.interpreters.finalizing to prevent new subinterpreters from being created during finalisation

https://bugs.python.org/issue36225

@LewisGaul

This comment has been minimized.

Copy link
Author

LewisGaul commented Dec 11, 2019

I need to look into test_audit_subinterpreter() testcase, will do so at some point soon.

Lewis Gaul added 2 commits Dec 13, 2019
@LewisGaul

This comment has been minimized.

Copy link
Author

LewisGaul commented Dec 13, 2019

As noted here, it seems test_audit_subinterpreter() was failing because it was trying to call Py_Finalize() from a subinterpreter. Hopefully now fixed by switching back to the main threadstate in that testcase.

@ericsnowcurrently ericsnowcurrently self-requested a review Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.