presto-memory-context/src/main/java/io/prestosql/memory/context/SimpleLocalMemoryContext.java/SimpleLocalMemoryContext/trySetBytes
class SimpleLocalMemoryContext:    @Override
    public synchronized boolean trySetBytes(long bytes)
    {
        checkState(!closed, "SimpleLocalMemoryContext is already closed");
        checkArgument(bytes >= 0, "bytes cannot be negative");
        long delta = bytes - usedBytes;
        if (parentMemoryContext.tryUpdateBytes(allocationTag, delta)) {
            usedBytes = bytes;
            return true;
        }
        return false;
    }