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-46430: fix error-handling in _Py_Deepfreeze_Init #31596

Merged
merged 1 commit into from Feb 26, 2022

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Feb 26, 2022

Fixes error-handling in interning of strings in deep-frozen modules.

@kumaraditya303 kumaraditya303 changed the title bpo-46712: fix error-handling in _Py_Deepfreeze_Init bpo-46430: fix error-handling in _Py_Deepfreeze_Init Feb 26, 2022
@kumaraditya303
Copy link
Contributor Author

@kumaraditya303 kumaraditya303 commented Feb 26, 2022

cc @vstinner @gvanrossum

Copy link
Member

@gvanrossum gvanrossum left a comment

Thanks! LGTM.

@gvanrossum gvanrossum merged commit 0d9b565 into python:main Feb 26, 2022
11 checks passed
@vstinner
Copy link
Member

@vstinner vstinner commented Feb 26, 2022

Thank you @kumaraditya303! I will help to make Python startup more reliable. It will prevent a crash if Python is started in an environment with very low memory available, or in a sandbox setting an arbitrary memory limit.

@kumaraditya303 kumaraditya303 deleted the error-handling branch Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants