public T allocate(int count) throws InvalidSizeException {
if (count < 1)
throw new InvalidSizeException("You must provide a count >= 1 when allocating a slab, received " + count);
AllocationHandler handler = listener == null ? NO_LISTENER : makeRecorder(count);
try {
return constructor.newInstance(count, handler, options);
} catch (RuntimeException e) {
throw e;