datamapper/dm-core — pull request #214 by toddtomkinson (2012-07-27 17:17:38+00:00)
Title: changes to support multiple threads in jruby--fixes github issue #188

Prevents the ConcurrencyError in jruby by replacing the buffer array vs. modifying it. It was the 'slice' that was causing the issue, as threads could be writing to the array during the slice operation and jruby doesn't like that.