Skip to content

gh-159511: Fix pystats assertion for register-cached uop IDs - #159512

Open
cocolato wants to merge 1 commit into
python:mainfrom
cocolato:fix/jit-stat-assert
Open

cocolato wants to merge 1 commit into
python:mainfrom
cocolato:fix/jit-stat-assert

Conversation

@cocolato

@cocolato cocolato commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Register-cached uop IDs start at MAX_UOP_ID + 1 (655), so with pystats collection on, UOP_STAT_INC aborts on the first uop executed in builds with assertions enabled.

Use PYSTATS_MAX_UOP_ID as the inclusive upper bound, matching the statistics array.

Reaching this assertion requires gh-148220, but this change does not depend on it.

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