ruby-changes:2153
From: ko1@a...
Date: 6 Oct 2007 16:30:37 +0900
Subject: [ruby-changes:2153] ko1 - Ruby:r13644 (trunk): * cont.c (cont_free): check Fiber or Continuation.
ko1 2007-10-06 16:30:02 +0900 (Sat, 06 Oct 2007) New Revision: 13644 Modified files: trunk/ChangeLog trunk/bootstraptest/test_knownbug.rb trunk/cont.c Log: * cont.c (cont_free): check Fiber or Continuation. * bootstraptest/test_knownbug.rb: remove a fixed test. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/cont.c?r1=13644&r2=13643 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13644&r2=13643 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=13644&r2=13643 Index: ChangeLog =================================================================== --- ChangeLog (revision 13643) +++ ChangeLog (revision 13644) @@ -1,3 +1,9 @@ +Sat Oct 6 16:24:02 2007 Koichi Sasada <ko1@a...> + + * cont.c (cont_free): check Fiber or Continuation. + + * bootstraptest/test_knownbug.rb: remove a fixed test. + Sat Oct 6 14:56:02 2007 Nobuyoshi Nakada <nobu@r...> * encoding.c (rb_enc_register): returns new index or -1 if failed. Index: bootstraptest/test_knownbug.rb =================================================================== --- bootstraptest/test_knownbug.rb (revision 13643) +++ bootstraptest/test_knownbug.rb (revision 13644) @@ -17,11 +17,6 @@ Marshal.load(Marshal.dump({"k"=>"v"}), lambda {|v| }) } -assert_normal_exit %q{ - require 'continuation' - Fiber.new{ callcc{|c| @c = c } }.resume -}, '[ruby-dev:31913]' - assert_not_match /method_missing/, %q{ STDERR.reopen(STDOUT) variable_or_mehtod_not_exist Index: cont.c =================================================================== --- cont.c (revision 13643) +++ cont.c (revision 13644) @@ -86,7 +86,8 @@ RUBY_FREE_UNLESS_NULL(cont->machine_register_stack); #endif RUBY_FREE_UNLESS_NULL(cont->vm_stack); - if (cont->saved_thread.local_storage) { + if (cont->vm_stack && cont->saved_thread.local_storage) { + /* fiber */ st_free_table(cont->saved_thread.local_storage); } ruby_xfree(ptr); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml