]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134557: Suppress immortalization in _PyCode_GetScriptXIData under free...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 May 2025 19:14:58 +0000 (21:14 +0200)
committerGitHub <noreply@github.com>
Mon, 26 May 2025 19:14:58 +0000 (13:14 -0600)
commitc6cc28299e7ea4944ed4b4c348377a055c747b71
treed8431e7c9e1438eb86e9f539ed9f15cf39f1a4bd
parentbc3d89211310bbfb43829073c25b2be83a8e962e
[3.14] gh-134557: Suppress immortalization in _PyCode_GetScriptXIData under free-threading (gh134738)

Disable immortalization around Py_CompileString*().

The same approach as 332356b that fixed the refleaks in compile() and eval().

E: 09e72cf can pass test_capi, test_sys and test__interpchannels with this patch for me.

(cherry picked from commit c60f39ada625562bff26400f304690c19fe9f504, AKA gh-134686)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Python/crossinterp.c