public synchronized long getMemoryUsageForTask(long taskAttemptId) {
        return memoryForTask.get(taskAttemptId);
    }
Allocates memory for use by Unsafe/Tungsten code.
indexr-query-opt/src/main/java/org/apache/spark/memory/MemoryManager.java