Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Hide% uname -a
Darwin tiamat.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
% java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
Show% uname -a Darwin tiamat.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386 % java -version java version "1.5.0_16" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
-
Testcase included:yes
-
Number of attachments :
Description
% cat waitcond.rb
require 'thread'
mutex = Mutex.new
cond = ConditionVariable.new
thread = Thread.new {
mutex.synchronize
}
3.times {
sleep(1)
puts "thread.status: #
"
}
% jruby --version
jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-10-12 rev 7874) [i386-java]
% jruby waitcond.rb
thread.status: "run"
thread.status: "run"
thread.status: "run"
% ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin9.4.0]
% ruby waitcond.rb
thread.status: "sleep"
thread.status: "sleep"
thread.status: "sleep"
% useruby 1.9
Activated ruby-1.9.0-r19756
% ruby --version
ruby 1.9.0 (2008-10-11 revision 19756) [i386-darwin9.5.0]
% ruby waitcond.rb
thread.status: "sleep"
thread.status: "sleep"
thread.status: "sleep"
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Charles Oliver Nutter [ headius ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | JRuby 1.2 [ 14757 ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Fixed in r9103. Specs already existed, so I just enabled some of them.