Thread#status isn't set to "sleep" when blocking on a TCPSocket#read
--------------------------------------------------------------------

                 Key: JRUBY-5484
                 URL: http://jira.codehaus.org/browse/JRUBY-5484
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.6
         Environment: Linux desk4 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 
23:42:43 UTC 2011 x86_64 GNU/Linux
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

            Reporter: Alex Young
         Attachments: test_readline_thread_status.rb

The attached tests pass on MRI 1.8.7-p302 and 1.9.2-p136, and on Rubinius 
1.2.1dev. They create a thread which immediately blocks on a TCPSocket.read. In 
the other interpreters, the blocking thread's status is "sleep", while in 
JRuby-1.5.6 it is "run".

This also affects #readline.

-- 
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