code: private static long shallowSizeOfArray(Object array) {
      long size = NUM_BYTES_ARRAY_HEADER;
      final int len = Array.getLength(array);
      if (len > 0) {
        Class<?> arrayElementClazz = array.getClass().getComponentType();
        if (arrayElementClazz.isPrimitive()) {
          size += (long) len * primitiveSizes.get(arrayElementClazz);
        } else {
          size += (long) NUM_BYTES_OBJECT_REF * len;
        }
      }
      return alignObjectSize(size);
    }
docs: Return shallow size of any <code>array</code>.