summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/insns.def b/insns.def
index 20ba34f067..53e22223cd 100644
--- a/insns.def
+++ b/insns.def
@@ -218,7 +218,7 @@ setconstant
{
vm_check_if_namespace(cbase);
rb_const_set(cbase, id, val);
- INC_VM_STATE_VERSION();
+ rb_clear_cache_by_class(cbase);
}
/**
@@ -975,7 +975,7 @@ defineclass
class_iseq->local_size, 0, class_iseq->stack_max);
RESTORE_REGS();
- INC_VM_STATE_VERSION();
+ rb_clear_cache_by_class(klass);
NEXT_INSN();
}