summaryrefslogtreecommitdiff
path: root/proc.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 /proc.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 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 1e8c117..76a004d 100644
--- a/proc.c
+++ b/proc.c
@@ -50,7 +50,7 @@ proc_mark(void *ptr)
RUBY_MARK_UNLESS_NULL(proc->block.self);
RUBY_MARK_UNLESS_NULL(rb_vm_proc_envval(proc));
if (proc->block.iseq && RUBY_VM_IFUNC_P(proc->block.iseq)) {
- RUBY_MARK_UNLESS_NULL((VALUE)(proc->block.iseq));
+ rb_gc_mark((VALUE)(proc->block.iseq));
}
RUBY_MARK_LEAVE("proc");
}