Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Use System.arraycopy
  • Loading branch information
chrisseaton committed Feb 19, 2015
1 parent c6b7f03 commit 8d06ce7
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -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.