public static int heapSize(Class primitiveType) { if (!primitiveType.isPrimitive()) throw new IllegalArgumentException(); return (int) BYTES.alignAndConvert(HEAP_SIZE_MAP.get(primitiveType), BITS); }