It was my understanding that as of JDK12 the old experimental flag -XX:+UseCGroupMemoryLimitForHeap was removed but going to be baseline e.g. all JDK12 apps would read cgroup memory and set that as -Xms and -Xmx internally by default. However when I ran -XX:+PrintFlagsFinal with no -Xmx specified it showed I had only 512MB of memory for MaxHeap in a container with a limit of 2GB of memory allocated.
Did I miss something and the community decided to remove the -XX:+UseCGroupMemoryLimitForHeap flag with no intention of supporting behavior?