summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-06 07:30:02 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-06 07:30:02 +0000
commit68bcdf4c7ee41b73d165c78fe320c7a22d778a19 (patch)
tree94c2b97a9868e601847318fa9fc89e93f763d031
parent597974c21fed42a7e781718bcaa39315b041d800 (diff)
* cont.c (cont_free): check Fiber or Continuation.
* bootstraptest/test_knownbug.rb: remove a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--bootstraptest/test_knownbug.rb5
-rw-r--r--cont.c3
3 files changed, 8 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index fda4bb2d13..d708a6e83b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Oct 6 16:24:02 2007 Koichi Sasada <ko1@atdot.net>
+
+ * 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@ruby-lang.org>
* encoding.c (rb_enc_register): returns new index or -1 if failed.
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index ba91d5ca9f..9c1602eb9d 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -17,11 +17,6 @@ assert_normal_exit %q{
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
diff --git a/cont.c b/cont.c
index 36baa41ba2..bc812674f9 100644
--- a/cont.c
+++ b/cont.c
@@ -86,7 +86,8 @@ cont_free(void *ptr)
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);