diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-08 06:59:03 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-08 06:59:03 +0000 |
commit | 611e2874982afa0e9a684159ca3d228563a813c0 (patch) | |
tree | 54efe775a5a8c6fed0717e14510025a7198e8025 /bootstraptest | |
parent | 9f48c67236f7cca1972519676ffcfac511a594f0 (diff) | |
download | ruby-611e2874982afa0e9a684159ca3d228563a813c0.tar.gz |
* thread.c (rb_gc_save_machine_context): call FLUSH_REGISTER_WINDOWS
to mark the register stack from GC on another thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_thread.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index fde04a8d42..8d88a0f708 100644 --- a/bootstraptest/test_thread.rb +++ b/bootstraptest/test_thread.rb @@ -234,3 +234,15 @@ assert_normal_exit %q{ STDERR.reopen(STDOUT) exec "/" } + +assert_normal_exit %q{ + (0..10).map { + Thread.new { + 10000.times { + Object.new.to_s + } + } + }.each {|t| + t.join + } +} |