CLONE -JRuby IOHandlers are not thread safe
-------------------------------------------

                 Key: JRUBY-1227
                 URL: http://jira.codehaus.org/browse/JRUBY-1227
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0
            Reporter: Nicolas Modrzyk
            Priority: Critical
             Fix For: JRuby 1.1.0


The buffer for IOhandlers are not thread safe, meaning some very nasty things 
happen. A test case:

oo = open("file1", "w")

t = Thread.new { 10_000_000.times { oo.puts "foo bar"} }
10_000_000.times { oo.puts "baz mid"}
t.join


This will fail almost certainly; especially on dual core machines.

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