]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-133231: Changes to executor management to support proposed `sys._jit` module ...
authorMark Shannon <mark@hotpy.org>
Sun, 4 May 2025 09:05:35 +0000 (10:05 +0100)
committerGitHub <noreply@github.com>
Sun, 4 May 2025 09:05:35 +0000 (10:05 +0100)
commitac7d5ba96eb780b13877456b118ff1183bc6c4b3
tree6ab67a7735fb68da63b2924e51eb0b1e09d15271
parent1d9406e426d95eb088e4a474fccf294cc106b2b6
GH-133231: Changes to executor management to support proposed `sys._jit` module (GH-133287)

* Track the current executor, not the previous one, on the thread-state.

* Batch executors for deallocation to avoid having to constantly incref executors; this is an ad-hoc form of deferred reference counting.
13 files changed:
Include/cpython/pystate.h
Include/internal/pycore_interp_structs.h
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_optimizer.h
Include/internal/pycore_uop_metadata.h
Python/bytecodes.c
Python/ceval.c
Python/ceval_macros.h
Python/executor_cases.c.h
Python/generated_cases.c.h
Python/optimizer.c
Python/pystate.c
Tools/jit/template.c