int offset = VM_JavaHeader.computeArrayHeaderSize(shortArrayType); int arraySize = shortArrayType.getInstanceSize(n); Object result = allocateArray(n, arraySize, shortArrayTib, Plan.IMMORTAL_SPACE);
Object result = allocateArray(n, shortArrayType.getLogElementSize(), VM_ObjectModel.computeArrayHeaderSize(shortArrayType), shortArrayTib, Plan.IMMORTAL_SPACE);
  public static short[] newImmortalShortArray (int n) throws VM_PragmaInterruptible {    if (VM.runningVM) {      VM_Array shortArrayType = VM_Array.ShortArray;      Object [] shortArrayTib = shortArrayType.getTypeInformationBlock();      int offset = VM_JavaHeader.computeArrayHeaderSize(shortArrayType);      int arraySize = shortArrayType.getInstanceSize(n);      Object result = allocateArray(n, arraySize, shortArrayTib, Plan.IMMORTAL_SPACE);      return (short []) result;    }    return new short[n];  }