]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143421: Move `JitOptContext` from stack allocation to per-thread heap allocation...
authorHai Zhu <35182391+cocolato@users.noreply.github.com>
Thu, 8 Jan 2026 19:38:21 +0000 (03:38 +0800)
committerGitHub <noreply@github.com>
Thu, 8 Jan 2026 19:38:21 +0000 (19:38 +0000)
commitaeb34035633b24afb27d3888fdd12abdf2bdc339
treefc5ed20ac0d4a9c9a2ec305231f6caf93d4d42eb
parentcea2d2475d3eec9f4fd350ef9eb2ba43da1943a5
gh-143421: Move `JitOptContext` from stack allocation to per-thread heap allocation (GH-143536)

* move JitOptContext to _PyThreadStateImpl
* make _PyUOpInstruction buffer a part of _PyThreadStateImpl

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Include/internal/pycore_optimizer.h
Include/internal/pycore_optimizer_types.h [new file with mode: 0644]
Include/internal/pycore_tstate.h
Python/optimizer.c
Python/optimizer_analysis.c
Python/pystate.c