Repository navigation
Conversation
Member
Author
|
Hm, I did found other code that relies on immortality. I'll pick this up again next week. |
encukou
requested review from
FFY00,
ZeroIntensity and
ericsnowcurrently
as code owners
November 25, 2026 14:25
encukou
marked this pull request as draft
November 25, 2026 16:06
Only check immortality in GIL builds, and only check static immortality if it's flag-based.
Leaving this to a different PR. This reverts commit fce2c23.
Only check immortality in GIL builds, and only check static immortality if it's flag-based.
|
🤖 New build scheduled with the buildbot fleet by @encukou for commit bf4a1cb 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F162275%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
encukou
marked this pull request as ready for review
November 30, 2026 16:32
Member
Author
|
@vstinner, @markshannon: I'd like to get your opinion on skipping If we do that, I'll work on a follow-up PR for a special build that would inject de-immortalizations, to allow testing this more thoroughly. The Buildbot failures are existiong/unrelated:
|
encukou
requested review from
1st1,
AA-Turner,
asvetlov,
kumaraditya303 and
willingc
as code owners
November 30, 2026 16:33
encukou
requested review from
Eclips4,
iritkatriel and
markshannon
as code owners
November 30, 2026 16:33
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mask out the deferred bit in PyStackRef_Is[True,False,None].
This should fix the
PyStackRef_Is*checks for de-immortalized constants.Honour _Py_STATICALLY_ALLOCATED_FLAG in _Py_IsImmortal (on 64-bit GIL builds)
This means static immortals are always treated as immortal.
Don't use Py_IsImmortal/_Py_IsStaticImmortal in
common_constants_clearReplace immortality assertions with macros that are skipped on builds where the check isn't reliable.