Project

General

Profile

« Previous | Next » 

Revision ef039de5

Added by ko1 (Koichi Sasada) over 12 years ago

  • vm.c (vm_make_env_each): work around to solve Bug #2729.
    fixes: Bug #2729
    a patch from Kazuki Tsujimoto
    This problem is caused by changing dfp (dynamic env pointer)
    from saved dfp. Saved dfp is pointed env in VM stack. However,
    the dfp can be moved because VM copies env from VM stack to
    the heap. At this copying, dfp was also changed. To solve this
    problem, I'll try to change throw mechanism (not save target dfp,
    but save target cfp).
  • bootstraptest/test_flow.rb: add a test for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e