Skip to content

Commit

Permalink
* insns.def: nobody set ic->ic_value.value to Qundef.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
ko1 committed Oct 29, 2015
1 parent b08d139 commit 648aa50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Fri Oct 30 06:20:40 2015 Koichi Sasada <ko1@atdot.net>

* insns.def: nobody set ic->ic_value.value to Qundef.

Fri Oct 30 06:15:50 2015 Koichi Sasada <ko1@atdot.net>

* vm.c: add ifndef guard for VM_CHECK_MODE.
Expand Down
4 changes: 1 addition & 3 deletions insns.def
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 648aa50

Please sign in to comment.