Integrated: JDK-8302385: Remove MetaspaceReclaimPolicy=none

Thomas Stuefe stuefe at openjdk.org
Thu Feb 16 07:04:38 UTC 2023


On Tue, 14 Feb 2023 10:26:02 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> This patch removes the "MetaspaceReclaimPolicy=none" mode. It had been a safety measure when JEP-387 came out, but it has never really been needed. Since it adds complexity (especially in tests) I'd like to get rid of it.
> 
> For more details, please see the reasoning in CSR [JDK-8302130](https://bugs.openjdk.org/browse/JDK-8302130).
> 
> -------
> 
> Tests:
> - I manually ran metaspace tests (see test group "hotspot_metaspace") on linux x64 (release, fastdebug) and x86 (fastdebug) 
> - GHAs are scheduled.
> 
> -------
> 
> Reviewer hint:
> 
> Removing the "none" Policy basically hardcodes the behavioral settings to:
> 
> Settings::**uncommit_free_chunks** => **true**; (as in, we always do reclaim upon classloader death)
> Settings::**new_chunks_are_fully_committed** => **false**; (as in, newly allocated chunks are only committed as far as needed)

This pull request has now been integrated.

Changeset: 519229db
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/519229db3c75e56b4f6e05d918300f1cead1c3b1
Stats:     287 lines in 19 files changed: 35 ins; 189 del; 63 mod

8302385: Remove MetaspaceReclaimPolicy=none

Reviewed-by: iklam, dholmes

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

PR: https://git.openjdk.org/jdk/pull/12554


More information about the hotspot-runtime-dev mailing list