extra thread created on timed out conditionvariable
---------------------------------------------------

                 Key: JRUBY-4952
                 URL: http://jira.codehaus.org/browse/JRUBY-4952
             Project: JRuby
          Issue Type: Bug
         Environment: jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-07-14 
fba12c0) (Java HotSpot(TM) Client VM 1.6.0_10) [x86-java]
            Reporter: Roger Pack
            Assignee: Thomas E Enebo
            Priority: Minor


This isn't a show-stopper since I just discovered jruby in 1.8 mode has 
ConditionVariable#wait(mutex, timeout), but, this snippet

irb(main):003:0> require 'timeout'
=> true
irb(main):004:0> require 'thread'
=> true
irb(main):005:0> Timeout::timeout(2) { a = Mutex.new; a.synchronize { 
ConditionVariable.new.wait(a) } }
Timeout::Error: execution expired
        from (irb):5
irb(main):006:0> Thread.list
=> [#<Thread:0x407166 run>, #<Thread:0x1f95165 run>]

causes an extra thread to be created than MRI does. FWIW.
Thanks!
-r

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to