private static long roundUpSize_old(long size) {
    long remainder = size % 8;
    if (remainder != 0) {
      size += 8 - remainder;
    }
    return size;
  }
For reference, and to compare benchmark numbers, this is the original method.
geode-core/src/jmh/java/org/apache/geode/internal/JvmSizeUtilsBenchmark.java