public long objectFieldOffset(final Field field) {
            return field == null || this.unsafe == null ? -1 : this.unsafe.objectFieldOffset(field);
        }
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