FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-134557: Suppress immortalization in _PyCode_GetScriptXIData under free-threading by neonene · Pull Request #134686 · python/cpython · GitHub

/ cpython Public

gh-134557: Suppress immortalization in _PyCode_GetScriptXIData under free-threading - #134686

Merged
ericsnowcurrently merged 1 commit into
python:mainfrom
neonene:fix-134557
May 26, 2025
Merged

gh-134557: Suppress immortalization in _PyCode_GetScriptXIData under free-threading#134686
ericsnowcurrently merged 1 commit into
python:mainfrom
neonene:fix-134557

Conversation

neonene commented May 26, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

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.

This comment was marked as outdated.

ericsnowcurrently left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

emmatyping added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 26, 2025

Copy link
Copy Markdown

🤖 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 removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 26, 2025

Copy link
Copy Markdown
Member

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

colesbury left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks

emmatyping left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think this makes sense.

Copy link
Copy Markdown

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 Bot commented May 26, 2025

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label May 26, 2025

Copy link
Copy Markdown
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 deleted the fix-134557 branch May 26, 2025 22:54
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
…under free-threading (pythongh-134686)

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.
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…under free-threading (pythongh-134686)

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.
gostak-dd pushed a commit to gostak-dd/cpython that referenced this pull request Jun 2, 2026
…under free-threading (pythongh-134686)

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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL