presto-spi/src/main/java/io/prestosql/spi/block/BlockUtil.java/BlockUtil/calculateBlockResetBytes
class BlockUtil:    static int calculateBlockResetBytes(int currentBytes)
    {
        long newBytes = (long) ceil(currentBytes * BLOCK_RESET_SKEW);
        if (newBytes > MAX_ARRAY_SIZE) {
            return MAX_ARRAY_SIZE;
        }
        return (int) newBytes;
    }