Skip to content

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

ericsnowcurrently merged 1 commit into
python:mainfrom
ericsnowcurrently:deepfreeze-in-main

Conversation

@ericsnowcurrently

@ericsnowcurrently ericsnowcurrently commented Apr 24, 2023 •

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
ericsnowcurrently enabled auto-merge (squash) April 24, 2023 21:27
@ericsnowcurrently
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
ericsnowcurrently deleted the deepfreeze-in-main branch April 24, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants