private MemoryState checkToleranceAndGetNextState(MemoryState newState, MemoryState oldState) {
    return memoryStateChangeTolerance > 0
        && toleranceCounter++ < memoryStateChangeTolerance ? oldState : newState;
  }
To avoid memory spikes in JVMs susceptible to bad heap memory
reads/outliers, we only deliver events if we receive more than
memoryStateChangeTolerance of the same state change.

@return New state if above tolerance, old state if below
geode-core/src/main/java/org/apache/geode/internal/cache/control/MemoryThresholds.java