Support methods for (native) arrays. These utility methods are intended as `System.arraycopy` replacements esp. for common cases such as (method) argument processing, where the arrays are usually small. These are fairly common and for such arrays a length switch + an "inlined" array copy/instantiation cuts the execution time to (at least) half, compared to doing a bare native `arraycopy` (on 8u102).
copy(Object[] src, Object[] dst, int dstOff, int length)Copy a source array into a destination array.
| name | type | description |
|---|---|---|
| dst_off | int | off set to start copying to |
| length | int | copied array length |
copy(Object[] src, int srcOff, Object[] dst, int dstOff, int length)newCopy(Object[] src, int length)newCopy(org.jruby.runtime.builtin.IRubyObject[] src, int length)newCopy(org.jruby.runtime.builtin.IRubyObject[] src, int srcOff, int length)newCopy(Class[] src, int length)newCopy(Object[] src, Object last)newCopy(org.jruby.runtime.builtin.IRubyObject[] src, org.jruby.runtime.builtin.IRubyObject last)newCopy(org.jruby.runtime.builtin.IRubyObject first, org.jruby.runtime.builtin.IRubyObject[] src)