RFR: JDK-8275856: Remove MetaspaceHandleDeallocations debug switch

Ioi Lam iklam at openjdk.java.net
Fri Oct 29 04:21:20 UTC 2021


On Mon, 25 Oct 2021 07:48:58 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> `MetaspaceHandleDeallocations` can be used to switch off deallocation handling (which takes care of reusing prematurely deallocated metaspace blocks in case of e.g. class redefinitions or class loading errors). Technically this is a leak then, the intent was to switch off the deallocation handling for error analysis. 
> 
> It had been very rarely used, only in the first stages of JEP 387, and it is not covered by tests. I propose to remove it to reduce code complexity.
> 
> Tests: GHAs, manual tests (note that we have regression tests in place for deallocation handling), SAP nightlies

LGTM

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

Marked as reviewed by iklam (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/6098


More information about the hotspot-runtime-dev mailing list