Project

General

Profile

Actions

Bug #2359

closed

test_threads.rb:test_list

Added by docwhat (Christian Höltje) over 14 years ago. Updated about 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [sparc-solaris2.8]
Backport:
[ruby-core:26694]

Description

=begin
In test/ruby/test_threads.rb:
test_list errors or hangs on Sparc64 Solaris.

I think the problem is that when using native threads, loop{} starves the other threads. I can "fix" running the internal eval'd code by changing the loop{} to be loop{puts 'fubar'}. But that only works if it sends to the terminal (the io causes the thread to let go). Since it's being captured by assert_in_out_err() that doesn't really work.

A work around is to change loop{} to loop{Thread.pass} but I don't know if this still tests what it is supposed to test.
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #3890: ビジースレッドがあるとコンテキストスイッチが起きづらくなるClosedko1 (Koichi Sasada)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0