Skip to content

gh-151229: Finalize JIT tracer in test eval-frame stub#151609

Open
corona10 wants to merge 1 commit into
python:mainfrom
corona10:gh-151229-capi
Open

gh-151229: Finalize JIT tracer in test eval-frame stub#151609
corona10 wants to merge 1 commit into
python:mainfrom
corona10:gh-151229-capi

Conversation

@corona10

@corona10 corona10 commented Jun 17, 2026

Copy link
Copy Markdown
Member

A test-only interpreter stubs out JIT compilation as a no-op, but the stub also forgot to reset the tracer's is_tracing flag. Under PYTHON_JIT_STRESS=1, a trace can start inside this stub and never finalize, leaving is_tracing stuck true, so the recursive-trace guard rejects every future trace, silently disabling the JIT for the rest of the process.

@corona10

Copy link
Copy Markdown
Member Author

@Fidget-Spinner @markshannon
Test results with PYTHON_JIT_STRESS=1, full test_capi, run=1,463:
The patch fixes all 269 failures (all in test_capi.test_opt) with no new regressions.

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