202203204205206207208209210211
long delta = newMemoryReservation - memoryReservation.get(); // currently, operator memory is not be released if (delta > 0 && !reserveMemory(delta)) { throw new ExceededMemoryLimitException(getMaxMemorySize()); } return newMemoryReservation; }