--trace-compile
incorrectly reports only-inferred methods as being re-compiled
#56155
Labels
bug
Indicates an unexpected problem or unintended behavior
observability
metrics, timing, understandability, reflection, logging, ...
Milestone
There are times (such as when inlining) when Julia will create a
CodeInstance
that has no code associated with it.For example:
This outputs:
which shows that
contractuser(::String)
was never invalidated (and in fact only has one CodeInstance). It just never had any code associated with it because it was only inferred and then inlined.However if you run with
--trace-compile=compile.log
you'll see:You can see we reported
precompile(Tuple{typeof(Base.Filesystem.contractuser), String}) # recompile
The text was updated successfully, but these errors were encountered: