public static long alignUp(long value, long align) {
    return (value + align - 1L) & ~(align - 1L);
  }
Estimation of memory footprint of object
storage-api/src/java/org/apache/hadoop/hive/ql/util/JavaDataModel.java