1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* proc.c (proc_dup): copy blockprocval. proc_dup is used by

define_method, which made blockprocval be GC'ed mistakenly.
  [ruby-core:30023]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-05-09 14:51:43 +00:00
parent c4546f190a
commit 1bcd74de17
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Sun May 9 23:07:53 2010 Yusuke Endoh <mame@tsg.ne.jp>
* proc.c (proc_dup): copy blockprocval. proc_dup is used by
define_method, which made blockprocval be GC'ed mistakenly.
[ruby-core:30023]
Sun May 9 16:28:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* cont.c (fiber_initialize_machine_stack_context): try to release

1
proc.c
View file

@ -105,6 +105,7 @@ proc_dup(VALUE self)
dst->block = src->block;
dst->block.proc = procval;
dst->blockprocval = src->blockprocval;
dst->envval = src->envval;
dst->safe_level = src->safe_level;
dst->is_lambda = src->is_lambda;