Skip to content

Commit

Permalink
* eval.c (proc_alloc): cache the created object at first time.
Browse files Browse the repository at this point in the history
  [ruby-talk:61288], [ruby-dev:22240]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Dec 13, 2003
1 parent 9579041 commit fe7c38c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sat Dec 13 17:17:59 2003 Nobuyoshi Nakada <[email protected]>

* 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 <[email protected]>

* configure.in: check ucontext.h.
Expand Down
1 change: 1 addition & 0 deletions eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe7c38c

Please sign in to comment.