Commit df40bab
authored
fix invalidations related to
Related to #52134. It would be nice if the underlying inference issue
was fixed but this seems to be a hotfix for now.
I have seen this inference problem occurring in Julia v1.9, v1.10, and
current `master`. For example, on Julia v1.9.3, I get
```julia
julia> code_warntype(ismutable, (Function,))
MethodInstance for ismutable(::Function)
from ismutable(x) @ Base reflection.jl:521
Arguments
#self#::Core.Const(ismutable)
x::Function
Body::Any
1 ─ nothing
│ nothing
│ %3 = Base.typeof(x)::Type{<:Function}
│ %4 = Base.getproperty(%3, :name)::Any
│ %5 = Base.getproperty(%4, :flags)::Any
│ %6 = (%5 & 0x02)::Any
│ %7 = (%6 == 0x02)::Any
└── return %7
```
This causes some invalidations when `using OrdinaryDiffEq`.ismutable (#52170)1 parent 72dbbdb commit df40bab
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
631 | 633 | | |
632 | 634 | | |
633 | 635 | | |
| |||
0 commit comments