mutex.synchronize does not work with jruby-1.6.1
------------------------------------------------

                 Key: JRUBY-5797
                 URL: http://jira.codehaus.org/browse/JRUBY-5797
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.1
         Environment: jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (Java 
HotSpot(TM) 64-Bit Server VM 1.6.0_23) [Windows Server 2008 R2-amd64-java]
            Reporter: ZD Yu
            Assignee: Thomas E Enebo


Code
===============
thread_pool = Array.new(2) {
  Thread.new {
    mutex = Mutex.new
        mutex.synchronize {
        }
  }
}

problem
=============
the code above worked with 'jruby --1.8' but failed with 'jruby --1.9'.
the weird thing is that this problem only happens on Windows 2008 R2. On 
Windows 7 (with the exactly same JVM), it works well.

error message
==============
Exception in thread "RubyThread-1: jruby-19-bug.rb:1" java.lang.LinkageError: 
loader (instance of  org/jruby/util/JRubyClassLoader): attempted  duplicate 
class definition for name: "jruby_minus_19_minus_bug$block_2$RUBY$__file__"
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)




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