We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05d2237 commit c6889baCopy full SHA for c6889ba
src/invalidations.jl
@@ -428,12 +428,14 @@ function invalidation_trees(list; exclude_corecompiler::Bool=true)
428
push!(mt_cache, mi)
429
leaf = nothing
430
elseif loctag == "jl_method_table_insert"
431
- root = getroot(leaf)
432
- root.mi = mi
433
- if !exclude_corecompiler || !from_corecompiler(mi)
434
- push!(backedges, root)
+ if leaf !== nothing # we logged without actually invalidating anything (issue #354)
+ root = getroot(leaf)
+ root.mi = mi
+ if !exclude_corecompiler || !from_corecompiler(mi)
435
+ push!(backedges, root)
436
+ end
437
+ leaf = nothing
438
end
- leaf = nothing
439
elseif loctag == "jl_insert_method_instance"
440
@assert leaf !== nothing
441
root = getroot(leaf)
0 commit comments