Why different default values for MetaspaceSize?

Thomas Stüfe thomas.stuefe at gmail.com
Wed Feb 17 13:08:22 UTC 2021


Hi,

Does anyone know why the default for MetaspaceSize (the initial threshold
which triggers the first metaspace-motivated GC) is cpu- and
compiler-tier-dependent?

IIUC this has been the way since PermGen removal.

I can see a vague connection between compiler tier and this size since
MethodCounters live in metaspace and we probably have more of them with C2?
I'm guessing here. But the size difference is not large at all (16m vs 12m)
and probably does not make a big difference. Why not just set it to one
default size?

Thanks, Thomas


More information about the hotspot-runtime-dev mailing list