add a callback for when method cache changes

This commit is contained in:
Aaron Patterson 2021-02-03 15:09:34 -08:00 committed by Alan Wu
parent d2d564be1d
commit ab5760307b
3 changed files with 9 additions and 0 deletions

View file

@ -141,6 +141,7 @@ vm_cme_invalidate(rb_callable_method_entry_t *cme)
void
rb_clear_constant_cache(void)
{
rb_ujit_constant_state_changed();
INC_GLOBAL_CONSTANT_STATE();
}