ruby-changes:65994
From: Yusuke <ko1@a...>
Date: Wed, 28 Apr 2021 02:13:53 +0900 (JST)
Subject: [ruby-changes:65994] 99eebf8260 (master): test/ruby/test_fiber.rb: reduce the count of object creation to cause GC
https://git.ruby-lang.org/ruby.git/commit/?id=99eebf8260 From 99eebf8260f2e6644333c795d200fef215f0006e Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 28 Apr 2021 02:11:32 +0900 Subject: test/ruby/test_fiber.rb: reduce the count of object creation to cause GC ... on Solaris. This is the same as 547887138f19959f649b1c0dbcde5659ae3878ed. http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20210427T160003Z.fail.html.gz ``` [ 7667/20965] TestFiber#test_fork_from_fiber/export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:397:in `transfer': can't alloc machine stack to fiber (1 x 139264 bytes): Not enough space (FiberError) from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:397:in `block (6 levels) in test_fork_from_fiber' from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:396:in `times' from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:396:in `block (5 levels) in test_fork_from_fiber' from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:392:in `fork' from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:392:in `block (4 levels) in test_fork_from_fiber' = 0.88 s ... 1) Failure: TestFiber#test_fork_from_fiber [/export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:409]: [ruby-core:41456]. <0> expected but was <1>. ``` --- test/ruby/test_fiber.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb index b2518c3..26f8268 100644 --- a/test/ruby/test_fiber.rb +++ b/test/ruby/test_fiber.rb @@ -392,7 +392,7 @@ class TestFiber < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_fiber.rb#L392 xpid = fork do # enough to trigger GC on old root fiber count = 10000 - count = 1000 if /openbsd/i =~ RUBY_PLATFORM + count = 1000 if /solaris|openbsd/i =~ RUBY_PLATFORM count.times do Fiber.new {}.transfer Fiber.new { Fiber.yield } -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/