-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-134557: Suppress immortalization in _PyCode_GetScriptXIData under free-threading #134686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🤖 New build scheduled with the buildbot fleet by @emmatyping for commit 4dac776 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F134686%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
Oh, the refleak buildbots won't catch any leaks because there aren't any tests that could trigger a leak. My mistake🤦♀️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense.
Thanks @neonene for the PR, and @ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…under free-threading (pythongh-134686) Disable immortalization around Py_CompileString*(). The same approach as 332356b that fixed the refleaks in compile() and eval(). (cherry picked from commit c60f39a) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com> E: 09e72cf can pass test_capi, test_sys and test__interpchannels with this patch for me.
GH-134738 is a backport of this pull request to the 3.14 branch. |
Thanks for the fix, @neonene! |
… 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 c60f39a, AKA gh-134686) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
The same approach as 332356b that fixed the refleaks in
compile()
andeval()
.cc @colesbury @ericsnowcurrently @emmatyping I'm not so confident.
E: 09e72cf can pass
test_capi
,test_sys
andtest__interpchannels
with this patch for me.