summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-15 09:32:08 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-15 09:32:08 (GMT)
commitdab4d077d12f4140007aa9c4299d9bdfba0e1fc3 (patch)
tree02c1fb58a1c5104c86bff3eb09a7e7febf954b21 /vm.c
parenta0908cb41356f4384a3e9a199c14490a452080ef (diff)
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
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index b2b87f8..7973335 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);