// jvmmempc was set OR neither jvmmempc nor jvmmemmax were set), let's cap
// maxMemLong to 8GB
if (memoryPercentError && mempc == -1
- // && (jvmmempcarg != null || (jvmmempcarg == null && jvmmemmaxarg == null))
- // the above is easier to understand but simplified to
- && !(jvmmempcarg == null && jvmmemmaxarg != null)
+ && !(jvmmempcarg == null && jvmmemmaxarg != null) // the same as (jvmmempcarg != null || (jvmmempcarg == null && jvmmemmaxarg
+ // == null))
&& memmax > NOMEM_MAX_HEAPSIZE_GB_DEFAULT * GIGABYTE)
{
System.out.println(