ConcurrencyError from Array#choice when the Array was truncated before
----------------------------------------------------------------------

                 Key: JRUBY-5787
                 URL: http://jira.codehaus.org/browse/JRUBY-5787
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6.1
         Environment: jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) 
(OpenJDK 64-Bit Server VM 1.6.0_22) [linux-amd64-java]
            Reporter: Hiroshi Nakamura
            Assignee: Hiroshi Nakamura


{noformat}
% ruby187 -e 'a = [1,2,3,4,5]; a.shift(4); p a.choice'
5
% jruby161 -e 'a = [1,2,3,4,5]; a.shift(4); p a.choice'
ConcurrencyError: Detected invalid array contents due to unsynchronized 
modifications with concurrent users
  choice at org/jruby/RubyArray.java:3641
  (root) at -e:1
zsh: exit 1     /home/nahi/java/jruby-1.6.1/bin/jruby -e 
{noformat}

master branch is already fixed by merging MersenneTwister. master 8c6dba]
1.6.1 needs a fix.

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