presto-spi/src/main/java/io/prestosql/spi/Page.java/Page/getLogicalSizeInBytes
class Page:    public long getLogicalSizeInBytes()
    {
        long size = logicalSizeInBytes.get();
        if (size < 0) {
            size = 0;
            for (Block block : blocks) {
                size += block.getLogicalSizeInBytes();
            }
            logicalSizeInBytes.set(size);
        }
        return size;
    }