irb(main):001:0> a = [1]
=> [1]
irb(main):002:0> a.concat(a)
=> [1, 1]
irb(main):003:0> a.concat(a)
ConcurrencyError: Detected invalid array contents due to unsynchronized modifications with concurrent users
from org/jruby/RubyArray.java:1580:in `concat'
from (irb):3:in `<eval>'
from org/jruby/RubyKernel.java:995:in `eval'
from org/jruby/RubyKernel.java:1316:in `loop'
from org/jruby/RubyKernel.java:1138:in `catch'
from org/jruby/RubyKernel.java:1138:in `catch'
from /home/user/.rbenv/versions/jruby-9.1.16.0/bin/irb:13:in `<main>'
irb(main):004:0>
The text was updated successfully, but these errors were encountered:
Environment
Expected Behavior
x
concat
that array to itself twicex
Actual Behavior
The text was updated successfully, but these errors were encountered: