__END__ require 'test/unit' $-w = true require 'sleepy_penguin' class TestEpollGcPerThread < Test::Unit::TestCase include SleepyPenguin def test_per_thread_gc_storm thr = [] pipes = [] 100000.times do t = Thread.new do ep = Epoll.new ep.add(r, Epoll::IN) ep.wait { | end thr << t if thr.size > 100 end end end