diff options
author | Alan Wu <alanwu@ruby-lang.org> | 2021-01-18 14:02:19 -0500 |
---|---|---|
committer | Alan Wu <alanwu@ruby-lang.org> | 2021-01-18 14:02:19 -0500 |
commit | e812b362059706d0fb4ce1ec4f8941383dda6166 (patch) | |
tree | 53c03444ad3abee969df749d5f533c140e65bd18 /vm_method.c | |
parent | 21d2463fbc5094aa2ad92a21c910dccdc928b920 (diff) |
Fix typo: invaldate -> invalidate
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c index 81920bbe5b..aee5d6149c 100644 --- a/vm_method.c +++ b/vm_method.c @@ -129,7 +129,7 @@ rb_clear_constant_cache(void) } static void -invaldate_negative_cache(ID mid, bool invalidate_cme) +invalidate_negative_cache(ID mid, bool invalidate_cme) { const rb_callable_method_entry_t *cme; rb_vm_t *vm = GET_VM(); @@ -162,7 +162,7 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid) // invalidate CCs if (cc_tbl && rb_id_table_lookup(cc_tbl, mid, (VALUE *)&ccs)) { - if (NIL_P(ccs->cme->owner)) invaldate_negative_cache(mid, false); + if (NIL_P(ccs->cme->owner)) invalidate_negative_cache(mid, false); rb_vm_ccs_free(ccs); rb_id_table_delete(cc_tbl, mid); RB_DEBUG_COUNTER_INC(cc_invalidate_leaf_ccs); @@ -211,7 +211,7 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid) RB_DEBUG_COUNTER_INC(cc_invalidate_tree); } else { - invaldate_negative_cache(mid, true); + invalidate_negative_cache(mid, true); } } } |