Project

General

Profile

Bug #1402

test_cookie(TestCookie)でtest-allが止まる

Added by znz (Kazuhiro NISHIYAMA) about 11 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.8dev (2009-04-22 revision 23257) [i686-linux]
[ruby-dev:38319]

Description

=begin
http://www.rubyist.net/~akr/chkbuild/debian/ruby-1.8-pth/last
のように ruby 1.8.8dev で --enable-pthread の場合に止まります。

挙動から推測すると、while修飾子の左がリテラルだとスレッドが
切り替わっていないような気がします。

% cat t.rb
require 'timeout'
@flag = true
Thread.start {
sleep 0.1
@flag = false
}
Timeout.timeout(1) {
nil while @flag
}
% ruby18 -vd t.rb
ruby 1.8.8dev (2009-04-22 revision 23257) [i686-linux]
=end


Related issues

Related to Ruby master - Bug #270: lazy timer thraed creationClosedko1 (Koichi Sasada)Actions
#1

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23268.
=end

Also available in: Atom PDF