Skip to content

Commit 1bf65b9

Browse files
authored
Log only if something was invalidated (#49264)
1 parent 6bfb7fb commit 1bf65b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,7 @@ JL_DLLEXPORT void jl_method_table_insert(jl_methtable_t *mt, jl_method_t *method
20872087
}
20882088
jl_array_ptr_1d_push(oldmi, (jl_value_t*)mi);
20892089
invalidate_external(mi, max_world);
2090-
if (_jl_debug_method_invalidation) {
2090+
if (_jl_debug_method_invalidation && invalidated) {
20912091
jl_array_ptr_1d_push(_jl_debug_method_invalidation, (jl_value_t*)mi);
20922092
loctag = jl_cstr_to_string("jl_method_table_insert");
20932093
jl_array_ptr_1d_push(_jl_debug_method_invalidation, loctag);

0 commit comments

Comments
 (0)