diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-13 08:18:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-13 08:18:03 +0000 |
commit | fe7c38c8620cf65461285b8a1b8c9afbbb36e044 (patch) | |
tree | f7c37f455314eaa29ae813eb07a4f55867aa3e7e | |
parent | 9579041da8a1dbf29fdc935cb78eafa2e9bfe9e3 (diff) | |
download | ruby-fe7c38c8620cf65461285b8a1b8c9afbbb36e044.tar.gz |
* eval.c (proc_alloc): cache the created object at first time.
[ruby-talk:61288], [ruby-dev:22240]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Dec 13 17:17:59 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * eval.c (proc_alloc): cache the created object at first time. + [ruby-talk:61288], [ruby-dev:22240] + Sat Dec 13 09:01:23 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> * configure.in: check ucontext.h. @@ -7066,6 +7066,7 @@ proc_alloc(klass, proc) data->orig_thread = rb_thread_current(); data->wrapper = ruby_wrapper; data->iter = data->prev?Qtrue:Qfalse; + data->block_obj = block; frame_dup(&data->frame); if (data->iter) { blk_copy_prev(data); |