diff options
author | Mark Shannon <mark@hotpy.org> | 2022-06-07 09:28:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 09:28:53 (GMT) |
commit | f012df706cf3a9e63625b8166fe3f419855e9a94 (patch) | |
tree | 79e77365bf7a0deda813c0036ee0ed3bde2390c5 /Lib/importlib/_bootstrap_external.py | |
parent | 75ceae05c11461beda65e6170b67b0b42fd55cd0 (diff) | |
download | cpython-f012df706cf3a9e63625b8166fe3f419855e9a94.zip cpython-f012df706cf3a9e63625b8166fe3f419855e9a94.tar.gz cpython-f012df706cf3a9e63625b8166fe3f419855e9a94.tar.bz2 |
Shrink the LOAD_METHOD cache by one codeunit. (#93537)
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 894848a..1b66542 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -407,6 +407,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.12a1 3500 (Remove PRECALL opcode) # Python 3.12a1 3501 (YIELD_VALUE oparg == stack_depth) # Python 3.12a1 3502 (LOAD_FAST_CHECK, no NULL-check in LOAD_FAST) +# Python 3.12a1 3503 (Shrink LOAD_METHOD cache) # Python 3.13 will start with 3550 @@ -420,7 +421,7 @@ _code_type = type(_write_atomic.__code__) # Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array # in PC/launcher.c must also be updated. -MAGIC_NUMBER = (3502).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3503).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c |