Integrated: 8314653: Metaspace: remove allocation guard feature
Thomas Stuefe
stuefe at openjdk.org
Thu Jul 4 12:45:24 UTC 2024
On Sat, 8 Jun 2024 06:42:37 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> In Metaspace in debug builds, one can guard allocations. This has been a useful feature in during implementation of JEP 387 to find bugs, but has not found much use thereafter, and remains an obscure and underused feature.
>
> But these guards cause quite a bit of complexity, mainly since they make testing difficult: with guards on, predicting arena growth gets quite complex.
>
> I propose to remove this feature to reduce Metaspace complexity.
>
> Tests: local (mac m1, Linux x64) Metaspace tests. GHAs.
This pull request has now been integrated.
Changeset: b0efd774
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/b0efd7740243916ba22178524ab2ede9e5436d94
Stats: 263 lines in 15 files changed: 0 ins; 242 del; 21 mod
8314653: Metaspace: remove allocation guard feature
Reviewed-by: azafari, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/19611
More information about the hotspot-runtime-dev
mailing list