jruby/jruby — pull request #224 by thedarkone (2012-07-13 13:43:01+00:00)
Title: Flip the Array's isShared last flag last

Flip the isShared flag only after the array's values have been copied over.

Doing things in reverse order risks exposing an `Array` object with `isShared = false`, while `values` still pointing to a shared array.