>>763 のコードはこういうこと
void copy(int[] x){
  int y[] = {3, 4};
  x = malloc(2 * sizeof(int));
  memcopy(y, x, 2 * sizeof(int));
  return;
}

おまいさんがやりたいのはこれだろ?
public static void copy(int[] x){
  int[] y = {3, 4};
  System.arraycopy(y, 0, x, 0, y.length);
  return;
}