mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix typo: invaldate -> invalidate
This commit is contained in:
parent
21d2463fbc
commit
e812b36205
1 changed files with 3 additions and 3 deletions
|
@ -129,7 +129,7 @@ rb_clear_constant_cache(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static 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;
|
const rb_callable_method_entry_t *cme;
|
||||||
rb_vm_t *vm = GET_VM();
|
rb_vm_t *vm = GET_VM();
|
||||||
|
@ -162,7 +162,7 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
|
||||||
|
|
||||||
// invalidate CCs
|
// invalidate CCs
|
||||||
if (cc_tbl && rb_id_table_lookup(cc_tbl, mid, (VALUE *)&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_vm_ccs_free(ccs);
|
||||||
rb_id_table_delete(cc_tbl, mid);
|
rb_id_table_delete(cc_tbl, mid);
|
||||||
RB_DEBUG_COUNTER_INC(cc_invalidate_leaf_ccs);
|
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);
|
RB_DEBUG_COUNTER_INC(cc_invalidate_tree);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
invaldate_negative_cache(mid, true);
|
invalidate_negative_cache(mid, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue