You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Base: add record_calls / invalidate_calls for compilation benchmarking
Add `Base.record_calls`, `Base.@record_calls`, and `Base.invalidate_calls`
for scoped invalidation of a call's cached native code and inferred IR.
These are intended for statistical benchmarking of compilation time
(e.g. `@benchmark foo($x) compilation=true` in BenchmarkTools): each
sample can invalidate just the target `MethodInstance` and force a fresh
codegen on the next dispatch, without bumping the global world counter
or propagating to backedges.
The C helper `invalidate_method_instance_caches` is renamed to
`jl_method_instance_invalidate_caches` and exported via julia.h so the
Julia-side wrapper can `ccall` it directly.
Co-Authored-By: Claude <[email protected]>
0 commit comments