Skip to content

gh-158072: Fix JIT crash with omitted default arguments - #158128

Open
lgeiger wants to merge 1 commit into
python:mainfrom
lgeiger:fix-jit-crash
Open

lgeiger wants to merge 1 commit into
python:mainfrom
lgeiger:fix-jit-crash

Conversation

@lgeiger

@lgeiger lgeiger commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

This fixes a JIT crash when a class is called without passing an optional __init__ argument. The optimizer treated that argument as uninitialized, even though Python fills it from a default.

I've verified that change fixes #158072 on my machine. I'm not a JIT expert and this fix was developed with significant LLM help so review with care 😇

@mgorny

mgorny commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Thanks. I can confirm that it fixes my original crash as well.

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.

3.15 JIT crash in starlette test suite, when brotli is installed

2 participants