Does the Java G1 garbage collector (as implemented in Open JDK) respect the -XX:MaxHeapFreeRatio=n JVM parameter?
Does it respect it in Java 8?
I found JEP 346: Promptly Return Unused Committed Memory from G1 delivered in Java 12, but it's not clear to me what was the state before it.