Skip to content

gh-162214: Use #ifdef to test _Py_TIER2 and _Py_TAIL_CALL_INTERP macros - #162218

Draft
vstinner wants to merge 2 commits into
python:mainfrom
vstinner:wundef_tier2
Draft

vstinner wants to merge 2 commits into
python:mainfrom
vstinner:wundef_tier2

Conversation

@vstinner

@vstinner vstinner commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

@vstinner

Copy link
Copy Markdown
Member Author

I mark this PR as a draft since I'm not sure that it's correct to only check if the _Py_TAIL_CALL_INTERP macro is defined, it seems like we also have to check its value. See #162215 (comment) discussion. I will wait until PR gh-162215 is clarified.

@vstinner

Copy link
Copy Markdown
Member Author

I updated the PR to patch also TIER_ONE and TIER_TWO macros (in Python/bytecodes.c).

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.

1 participant