From a8aa169b8f1f89660037c874e8fc2feaf596a43a Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Mon, 14 Dec 2020 10:49:07 +0900 Subject: add cc_invalidate_negative debug counter counts for invalidating negative cache. --- vm_method.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index f87c52fc54..122c43556f 100644 --- a/vm_method.c +++ b/vm_method.c @@ -198,6 +198,8 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid) if (rb_id_table_lookup(vm->negative_cme_table, mid, (VALUE *)&cme)) { rb_id_table_delete(vm->negative_cme_table, mid); vm_me_invalidate_cache((rb_callable_method_entry_t *)cme); + + RB_DEBUG_COUNTER_INC(cc_invalidate_negative); } } } -- cgit v1.2.1