Skip to content
Permalink
Browse files
[Truffle] Use System.arraycopy
  • Loading branch information
chrisseaton committed Feb 19, 2015
1 parent c6b7f03 commit 8d06ce7a2e64f90f353d6601f88f56f46dd43706
Showing 1 changed file with 1 addition and 4 deletions.
@@ -321,10 +321,7 @@ public static int capacity(int current, int needed) {
}
}

@ExplodeLoop
public static void arraycopy(Object[] src, int srcPos, Object[] dest, int destPos, int length) {
for (int i = 0; i < length; i++) {
dest[destPos + i] = src[srcPos + i];
}
System.arraycopy(src, srcPos, dest, destPos, length);
}
}

0 comments on commit 8d06ce7

Please sign in to comment.