presto-main/src/main/java/io/prestosql/memory/QueryContext.java/QueryContext/setMaxTotalMemory
class QueryContext:    public synchronized void setMaxTotalMemory(long maxTotalMemory)
    {
        this.maxTotalMemory = maxTotalMemory;
    }