summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-15 04:44:58 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-15 04:44:58 (GMT)
commit7c4b03e775a474c0cbe0cbe9e2eb844ad915e08c (patch)
treed4b84188b93c7703ab8789b895f5feeaad8da9a1 /vm.c
parentc2e8fb0f34999739cff9c9e2d637346079b9365f (diff)
vm.c: simplify
* vm.c (env_mark): remove redundant conditions and mark block.iseq simply unless null. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/vm.c b/vm.c
index b7d9dd4..93a816d 100644
--- a/vm.c
+++ b/vm.c
@@ -414,15 +414,7 @@ env_mark(void * const ptr)
RUBY_MARK_UNLESS_NULL(rb_vm_env_prev_envval(env));
RUBY_MARK_UNLESS_NULL(env->block.self);
RUBY_MARK_UNLESS_NULL(env->block.proc);
-
- if (env->block.iseq) {
- if (RUBY_VM_IFUNC_P(env->block.iseq)) {
- rb_gc_mark((VALUE)env->block.iseq);
- }
- else {
- RUBY_MARK_UNLESS_NULL((VALUE)env->block.iseq);
- }
- }
+ RUBY_MARK_UNLESS_NULL((VALUE)env->block.iseq);
RUBY_MARK_LEAVE("env");
}