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:
parent
c4546f190a
commit
1bcd74de17
2 changed files with 7 additions and 0 deletions
|
@ -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
1
proc.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue