presto-main/src/main/java/io/prestosql/execution/SqlQueryManager.java/SqlQueryManager/enforceMemoryLimits
class SqlQueryManager:    private void enforceMemoryLimits()
    {
        List<QueryExecution> runningQueries = queryTracker.getAllQueries().stream()
                .filter(query -> query.getState() == RUNNING)
                .collect(toImmutableList());
        memoryManager.process(runningQueries, this::getQueries);
    }