I am not sure what maxCoresLeft is supposed to signify.
maxLeftExecutorsToAssign seems to be assigned to number of memory slots available
Which seems orthogonal to maxCoreNumPerExecutor