Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --trace-dispatch #183

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Add --trace-dispatch #183

merged 1 commit into from
Sep 30, 2024

Commits on Sep 27, 2024

  1. Add --trace-dispatch

    Similar to `--trace-compile`, emit the `precompile` statement for a method
    once, but only when it is dynamically dispatched.
    
    For this, we rename the `precompiled` field in `jl_method_instance_t` to
    `flags` and use bit 0 as `precompiled` and bit 1 as `dispatched`.
    
    When the method is dispatched, the `dispatched` bit is set to 1 and the
    precompile statement is emitted. This check is done in
    `jl_gf_invoke_by_method` and in the slow path (cache miss) of
    `jl_apply_generic`.
    kpamnany committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    9d4f6b5 View commit details
    Browse the repository at this point in the history