RFR: 8267404: vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java failed with OutOfMemoryError

Thomas Stuefe stuefe at openjdk.java.net
Fri May 21 09:28:34 UTC 2021


On Fri, 21 May 2021 08:58:47 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> Maybe this is already understood, but in case it is not clear: -XX:MetaspaceSize is only used to determine at what point the first metaspace-induced GC should happen. When the Metaspace is filled up to that value, we trigger a GC. It is -XX:MaxMetaspaceSize that is the limit of how much memory we may commit for the metaspace.

Arguably MetaspaceSize=MaxMetaspaceSize helps a tiny tiny bit in lowering the runtime for this test, since we avoid some GC cycles (which would not collect anything anyway since this test does not unload anything).

-------------

PR: https://git.openjdk.java.net/jdk/pull/4140


More information about the hotspot-runtime-dev mailing list