Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8302385

Remove MetaspaceReclaimPolicy=none

XMLWordPrintable

    • b11

      Metaspace, since JEP-387, reclaims memory after purging and returns it to the Operating System. We added a MetaspaceReclaimPolicy switch to control this behavior. Among other things, we allow reclamation to be completely disabled (MetaspaceReclaimPolicy=none). This was a fallback mechanism in case the JEP-387 metaspace turned out buggy.

      But post-JEP-387 metaspace is pretty stable, and has been in the OpenJDK since Java 16, so this reclaim mode is not needed (see also CSR JDK-8302130).

      This mode makes backend coding and test coding more complex, since arguing about how much memory we expect metaspace to have committed is difficult if we don't reclaim. Removing this mode would remove some of that complexity.

        There are no Sub-Tasks for this issue.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: