diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-15 09:32:08 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-15 09:32:08 +0000 |
commit | dab4d077d12f4140007aa9c4299d9bdfba0e1fc3 (patch) | |
tree | 02c1fb58a1c5104c86bff3eb09a7e7febf954b21 /vm.c | |
parent | a0908cb41356f4384a3e9a199c14490a452080ef (diff) | |
download | ruby-dab4d077d12f4140007aa9c4299d9bdfba0e1fc3.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |