From dab4d077d12f4140007aa9c4299d9bdfba0e1fc3 Mon Sep 17 00:00:00 2001 From: normal Date: Wed, 15 Jul 2015 09:32:08 +0000 Subject: remove redundant NULL checks after RUBY_VM_IFUNC_P * proc.c (proc_mark): remove redundant check * vm.c (env_mark): ditto This doesn't change object code size, but the unstripped executable is smaller and the code less confusing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index b2b87f8eb5..797333591c 100644 --- a/vm.c +++ b/vm.c @@ -422,7 +422,7 @@ env_mark(void * const ptr) if (env->block.iseq) { if (RUBY_VM_IFUNC_P(env->block.iseq)) { - RUBY_MARK_UNLESS_NULL((VALUE)env->block.iseq); + rb_gc_mark((VALUE)env->block.iseq); } else { RUBY_MARK_UNLESS_NULL(env->block.iseq->self); -- cgit v1.2.3