mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Count uninitialized call cache as miss empty
Fix segfault at start up when `USE_DEBUG_COUNTER` is enabled.
This commit is contained in:
parent
ba01d15cf5
commit
17b89849c6
1 changed files with 1 additions and 1 deletions
|
@ -2209,7 +2209,7 @@ vm_search_method_slowpath0(VALUE cd_owner, struct rb_call_data *cd, VALUE klass)
|
|||
}
|
||||
|
||||
#if USE_DEBUG_COUNTER
|
||||
if (old_cc == empty_cc) {
|
||||
if (!old_cc || old_cc == empty_cc) {
|
||||
// empty
|
||||
RB_DEBUG_COUNTER_INC(mc_inline_miss_empty);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue