]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-141794: Limit size of generated machine code. (GH-142228)
authorMark Shannon <mark@hotpy.org>
Wed, 3 Dec 2025 17:43:35 +0000 (17:43 +0000)
committerGitHub <noreply@github.com>
Wed, 3 Dec 2025 17:43:35 +0000 (17:43 +0000)
commit62423c9c36f428ba07c83aeea7cbacc7cbb34ed2
treed931b35a3357aadf5a16d1c1c6c987353bc1cae6
parentaea5531583aaa8bfdf3ebca914e9c694617c3489
GH-141794: Limit size of generated machine code. (GH-142228)

* Factor out bodies of the largest uops, to reduce jit code size.
* Factor out common assert, also reducing jit code size.
* Limit size of jitted code for a single executor to 1MB.
14 files changed:
Include/internal/pycore_ceval.h
Include/internal/pycore_jit.h
Include/internal/pycore_uop.h
Lib/test/test_generated_cases.py
Python/bytecodes.c
Python/ceval.c
Python/ceval_macros.h
Python/executor_cases.c.h
Python/generated_cases.c.h
Python/jit.c
Python/optimizer_analysis.c
Python/optimizer_cases.c.h
Tools/cases_generator/stack.py
Tools/jit/template.c