← 返回首页
gh-100227: Only Use deepfreeze for the Main Interpreter by ericsnowcurrently · Pull Request #103794 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

gh-100227: Only Use deepfreeze for the Main Interpreter#103794

Merged
ericsnowcurrently merged 1 commit into
python:mainfrom
ericsnowcurrently:deepfreeze-in-main
Apr 24, 2023
Merged

gh-100227: Only Use deepfreeze for the Main Interpreter#103794
ericsnowcurrently merged 1 commit into
python:mainfrom
ericsnowcurrently:deepfreeze-in-main

Conversation

ericsnowcurrently commented Apr 24, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Deep-frozen code objects are cannot be shared (currently) by interpreters, due to how adaptive specialization can modify the bytecodes. We work around this by only using the deep-frozen objects in the main interpreter. This does incur a performance penalty for subinterpreters, which we may be able to resolve later.

ericsnowcurrently enabled auto-merge (squash) April 24, 2023 21:27
ericsnowcurrently merged commit 19e4f75 into python:main Apr 24, 2023
carljm added a commit to carljm/cpython that referenced this pull request Apr 24, 2023
* main: pythongh-100227: Only Use deepfreeze for the Main Interpreter (pythongh-103794) pythongh-103492: Clarify SyntaxWarning with literal comparison (python#103493) pythongh-101100: Fix Sphinx warnings in `argparse` module (python#103289)
carljm added a commit to carljm/cpython that referenced this pull request Apr 24, 2023
* superopt: pythongh-100227: Only Use deepfreeze for the Main Interpreter (pythongh-103794) pythongh-103492: Clarify SyntaxWarning with literal comparison (python#103493) pythongh-101100: Fix Sphinx warnings in `argparse` module (python#103289)
ericsnowcurrently deleted the deepfreeze-in-main branch April 24, 2023 21:55
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Footer

© 2026 GitHub, Inc.