Skip to content

Commit c6889ba

Browse files
authored
Skip empty sublists with no actual invalidations (#355)
Fixes #354
1 parent 05d2237 commit c6889ba

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/invalidations.jl

+7-5
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,14 @@ function invalidation_trees(list; exclude_corecompiler::Bool=true)
428428
push!(mt_cache, mi)
429429
leaf = nothing
430430
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)
431+
if leaf !== nothing # we logged without actually invalidating anything (issue #354)
432+
root = getroot(leaf)
433+
root.mi = mi
434+
if !exclude_corecompiler || !from_corecompiler(mi)
435+
push!(backedges, root)
436+
end
437+
leaf = nothing
435438
end
436-
leaf = nothing
437439
elseif loctag == "jl_insert_method_instance"
438440
@assert leaf !== nothing
439441
root = getroot(leaf)

0 commit comments

Comments
 (0)