aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Wu <alanwu@ruby-lang.org>2021-01-18 14:02:19 -0500
committerAlan Wu <alanwu@ruby-lang.org>2021-01-18 14:02:19 -0500
commite812b362059706d0fb4ce1ec4f8941383dda6166 (patch)
tree53c03444ad3abee969df749d5f533c140e65bd18
parent21d2463fbc5094aa2ad92a21c910dccdc928b920 (diff)
downloadruby-e812b362059706d0fb4ce1ec4f8941383dda6166.tar.gz
Fix typo: invaldate -> invalidate
-rw-r--r--vm_method.c6
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);
}
}
}