From a866e4b603d145dcd515b4c331132ed1a2a35a48 Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Sat, 16 Nov 2024 21:19:38 +0900 Subject: [PATCH] adjustment to JuliaLang/julia#56574 --- base/loading.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/loading.jl b/base/loading.jl index 62e65705b97b3d..dde4a7a71e81e5 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -1603,8 +1603,8 @@ function verify_method(codeinst::CodeInstance, stack::Vector{CodeInstance}, visi @atomic child.min_world = minworld end @atomic child.max_world = maxworld - @assert visiting[codeinst] == length(stack) + 1 - delete!(visiting, codeinst) + @assert visiting[child] == length(stack) + 1 + delete!(visiting, child) invalidations = _jl_debug_method_invalidation[] if invalidations !== nothing && maxworld < current_world push!(invalidations, child, "verify_methods", cause)