From 648aa500d60f48640e789ac6b478ad4e2cc54bb4 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 29 Oct 2015 21:21:13 +0000 Subject: [PATCH] * insns.def: nobody set ic->ic_value.value to Qundef. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ insns.def | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 26050a650e..9ccb53ae0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Oct 30 06:20:40 2015 Koichi Sasada + + * insns.def: nobody set ic->ic_value.value to Qundef. + Fri Oct 30 06:15:50 2015 Koichi Sasada * vm.c: add ifndef guard for VM_CHECK_MODE. diff --git a/insns.def b/insns.def index cbe36debcc..6b3f6dcf7e 100644 --- a/insns.def +++ b/insns.def @@ -1185,9 +1185,7 @@ setinlinecache (VALUE val) (VALUE val) { - if (ic->ic_value.value == Qundef) { - rb_iseq_add_mark_object(GET_ISEQ(), val); - } + VM_ASSERT(ic->ic_value.value != Qundef); ic->ic_value.value = val; ic->ic_serial = GET_GLOBAL_CONSTANT_STATE() - ruby_vm_const_missing_count; ic->ic_cref = rb_vm_get_cref(GET_EP());