Skip to content

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Aug 27, 2025

@corona10
Copy link
Member Author

Might be better approach than #138173, but issue is that max_length will be shorter than current, not sure that this apporach will be fine.

Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

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

Nice!

@corona10 corona10 marked this pull request as ready for review August 28, 2025 15:49
@corona10 corona10 requested a review from markshannon as a code owner August 28, 2025 15:49
// Need space for _DEOPT
max_length--;

max_length-=2;
Copy link
Member

Choose a reason for hiding this comment

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

Needs comment on why 2:
// One for possible _DEOPT, one because _CHECK_VALIDITY itself might _DEOPT

Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

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

LGTM. Will wait for Mark to agree.

@corona10
Copy link
Member Author

corona10 commented Sep 4, 2025

Gentle ping @markshannon: I plan to create a separate PR to move this to the thread state after merging this PR.

@corona10 corona10 merged commit 5edfe55 into python:main Sep 9, 2025
60 checks passed
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants