зеркало из https://github.com/github/ruby.git
add ccs_not_found debug counter
ccs_not_found to count not found in ccs table.
This commit is contained in:
Родитель
da3be76cb0
Коммит
c37ba2c547
|
@ -54,7 +54,8 @@ RB_DEBUG_COUNTER(cc_invalidate_negative) // count for invalidating negative
|
|||
|
||||
RB_DEBUG_COUNTER(ccs_free) // count for free'ing ccs
|
||||
RB_DEBUG_COUNTER(ccs_maxlen) // maximum length of ccs
|
||||
RB_DEBUG_COUNTER(ccs_found) // count for finding corresponding ccs on method lookup
|
||||
RB_DEBUG_COUNTER(ccs_found) // count for finding corresponding ccs on method lookup
|
||||
RB_DEBUG_COUNTER(ccs_not_found) // count for not found corresponding ccs on method lookup
|
||||
|
||||
// iseq
|
||||
RB_DEBUG_COUNTER(iseq_num) // number of total created iseq
|
||||
|
|
|
@ -1072,6 +1072,8 @@ cached_callable_method_entry(VALUE klass, ID mid)
|
|||
rb_id_table_delete(cc_tbl, mid);
|
||||
}
|
||||
}
|
||||
|
||||
RB_DEBUG_COUNTER_INC(ccs_not_found);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче