From 13e79a3ac95e8474eb349f7f05fe82a20faf78c6 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Wed, 6 May 2020 14:29:41 -0500 Subject: [PATCH] Also save signature triggering the invalidation --- src/gf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gf.c b/src/gf.c index e7d2d133f70e7..0eeb377584430 100644 --- a/src/gf.c +++ b/src/gf.c @@ -1739,6 +1739,9 @@ JL_DLLEXPORT void jl_method_table_insert(jl_methtable_t *mt, jl_method_t *method for (i = 1; i < na; i += 2) { jl_value_t *backedgetyp = backedges[i - 1]; if (!jl_has_empty_intersection(backedgetyp, (jl_value_t*)type)) { + if (_jl_debug_method_invalidation) { + jl_array_ptr_1d_push(_jl_debug_method_invalidation, (jl_value_t*)backedgetyp); + } jl_method_instance_t *backedge = (jl_method_instance_t*)backedges[i]; invalidate_method_instance(backedge, max_world, 0); invalidated = 1;