public Object allocateInstance(final Class<?> clazz) throws InstantiationException {
            return this.unsafe.allocateInstance(clazz);
        }
Returns the offset of the provided field, or {@code -1} if {@code sun.misc.Unsafe} is not
available.
jraft-core/src/main/java/com/alipay/sofa/jraft/util/internal/UnsafeUtil.java