At the moment, Class space size is capped at 3GB. Technically, the Klass encoding range is 4GB.
We cap class space at 3GB to leave breathing room for CDS. However, CDS needs a lot less. So we waste address space. In addition to that, the class space is capped at 3GB even if we run without CDS.
What we should do instead:
- if CDS is off, use the full 4GB
- if CDS is on, use as much memory as the archive size permits.
We cap class space at 3GB to leave breathing room for CDS. However, CDS needs a lot less. So we waste address space. In addition to that, the class space is capped at 3GB even if we run without CDS.
What we should do instead:
- if CDS is off, use the full 4GB
- if CDS is on, use as much memory as the archive size permits.