VM_Array type = VM_Magic.getObjectType(array).asArray(); Object [] tib = type.getTypeInformationBlock(); int size = type.getInstanceSize(length); return allocateArray(length, size, tib, allocator);
return cloneArray(array,allocator,array.length);
  public static Object cloneArray(Object [] array, int allocator, int length)      throws VM_PragmaUninterruptible {    VM_Array type = VM_Magic.getObjectType(array).asArray();    Object [] tib = type.getTypeInformationBlock();    int size = type.getInstanceSize(length);    return allocateArray(length, size, tib, allocator);  }