8000 gh-134557: Suppress immortalization in _PyCode_GetScriptXIData under free-threading by neonene · Pull Request #134686 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 1 commit into from
May 26, 2025

Conversation

neonene
Copy link
Contributor
@neonene neonene commented May 26, 2025

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

cc @colesbury @ericsnowcurrently @emmatyping I'm not so confident.

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

ericsnowcurrently

This comment was marked as outdated.

Copy link
Member
@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericsnowcurrently ericsnowcurrently added needs backport to 3.14 8000 bugs and security fixes skip news labels May 26, 2025
@emmatyping emmatyping added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 26, 2025
@bedevere-bot
Copy link

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

@bedevere-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 26, 2025
@emmatyping
Copy link
Member

Oh, the refleak buildbots won't catch any leaks because there aren't any tests that could trigger a leak. My mistake🤦‍♀️

Copy link
Contributor
@colesbury colesbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Copy link
Member
@emmatyping emmatyping left a 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.

@ericsnowcurrently ericsnowcurrently merged commit c60f39a into python:main May 26, 2025
56 of 57 checks passed
@miss-islington-app
Copy link

Thanks @neonene for the PR, and @ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 26, 2025
…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.
@bedevere-app
Copy link
bedevere-app bot commented May 26, 2025

GH-134738 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label May 26, 2025
@ericsnowcurrently
Copy link
Member

Thanks for the fix, @neonene!

ericsnowcurrently pushed a commit that referenced this pull request May 26, 2025
… 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>
@neonene neonene deleted the fix-134557 branch May 26, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0