private static long estimateBaseFromCoefficients(int[] coeff, boolean debug) {
    long prealign_size = (long) OBJECT + coeff[0] + coeff[2] * REFERENCE;

    // Round up to a multiple of 8
    long size = align(prealign_size) + align(coeff[1] * ARRAY);
    if (debug) {
      if (LOG.isDebugEnabled()) {
        LOG.debug("Primitives=" + coeff[0] + ", arrays=" + coeff[1] + ", references=" + coeff[2]
          + ", refSize " + REFERENCE + ", size=" + size + ", prealign_size=" + prealign_size);
      }
    }
    return size;
  }
Estimate the static space taken up by a class instance given the coefficients returned by
getSizeCoefficients.
@param coeff the coefficients
@param debug debug flag
@return the size estimate, in bytes
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ClassSize.java