summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-01 15:18:42 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-01 15:18:42 (GMT)
commit63c7d9111c29e96c51768a60253ca1132165fd51 (patch)
treeebe3ff9e4f21db9d680449d3b084942cac60cb14 /proc.c
parentc90550c251f0c598458d52dd2cbd5445e8d26c65 (diff)
proc.c: fix symbol proc mark
* proc.c (proc_mark): block.ep of Proc from Symbol is now NULL. [ruby-core:70961] [Bug #11560] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index bd4719d..d685fe2 100644
--- a/proc.c
+++ b/proc.c
@@ -48,7 +48,9 @@ proc_mark(void *ptr)
rb_proc_t *proc = ptr;
RUBY_MARK_UNLESS_NULL(proc->block.proc);
RUBY_MARK_UNLESS_NULL(proc->block.self);
- RUBY_MARK_UNLESS_NULL(rb_vm_proc_envval(proc));
+ if (proc->block.ep) {
+ RUBY_MARK_UNLESS_NULL(rb_vm_proc_envval(proc));
+ }
if (proc->block.iseq && RUBY_VM_IFUNC_P(proc->block.iseq)) {
rb_gc_mark((VALUE)(proc->block.iseq));
}