◐ Shell
clean mode source ↗

GH-141794: Limit size of generated machine code. by markshannon · Pull Request #142228 · python/cpython

* 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.

diegorusso

Co-authored-by: Diego Russo <diego.russo@arm.com>

Fidget-Spinner

StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request

Dec 6, 2025
* 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.