Skip to content

Reduce size (by half or more) of debug JIT stencils. #148960

Closed

Description

@markshannon

Currently the debug JIT stencils get all the code text and filenames needed for all the asserts included in the stencils, which makes them very large.
This would fine if it just made the code slower, but it means we have to cut debug traces short to avoid generating too much machine code. This means the the behavior of the tracer differs in debug mode, making it difficult to know what is happening in the non-debug build.

By moving the assertion code out of the stencil bodies, replacing it with custom assert functions, we can reduce the size of the stencils a lot, and have the debug and non-debug tracer at the same.

Linked PRs

Activity

  1. self-assigned this
    on Apr 24, 2026
  2. added 2 commits that reference this issue on Jun 1, 2026
  3. added a commit that references this issue on Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.15bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetopic-JIT

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions