Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array. A subsequence of array components are copied from the source array referenced by src to the destination array referenced by dst. The number of components copied i
(java.lang.Object src, int srcOffset, java.lang.Object dst, int dstOffset, int length)
| 56 | * Otherwise, if any actual component of the source array from position srcOffset through srcOffset+length-1 cannot be converted to the component type of the destination array by assignment conversion, an ArrayStoreException is thrown. In this case, let k be the smallest nonnegative integer less than length such that src[srcOffset+k] cannot be converted to the component type of the destination array; when the exception is thrown, source array components from positions srcOffset through srcOffset+k-1 will already have been copied to destination array positions dstOffset through dstOffset+k-1 and no other positions of the destination array will have been modified. (Because of the restrictions already itemized, this paragraph effectively applies only to the situation where both arrays have component types that are reference types.) |
| 57 | */ |
| 58 | public static native void arraycopy(java.lang.Object src, int srcOffset, java.lang.Object dst, int dstOffset, int length); |
| 59 | |
| 60 | // prevents the GC from collecting the GC thread itself... Since the GC doesn't traverse itself the GC object is |
| 61 | // invisible and can be collected by the GC, however this static field places it in the GC (recursion much...). |
no outgoing calls