Does G1GC release back memory to the OS even if Xms = Xmx?
问题 After reading some answers like this and JEP-346, I have realised that the G1 does release memory back to the OS. However does it release memory back to the OS, even to the point that current memory use can drop below the initial heap memory (i.e before this JEP, in my case JDK11)? Assume I have a Java 11 VM running with Xms and Xmx set as 5GB , on a 8GB RAM, however I am consuming only around 1GB . Will G1 release enough memory back to the OS? I didn't find any documentation anywhere which