Integrated: JDK-8275856: Remove MetaspaceHandleDeallocations debug switch

Thomas Stuefe stuefe at
Fri Oct 29 04:30:18 UTC 2021

On Mon, 25 Oct 2021 07:48:58 GMT, Thomas Stuefe <stuefe at> 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

This pull request has now been integrated.

Changeset: 157e1d50
Author:    Thomas Stuefe <stuefe at>
Stats:     69 lines in 5 files changed: 9 ins; 40 del; 20 mod

8275856: Remove MetaspaceHandleDeallocations debug switch

Reviewed-by: coleenp, iklam



More information about the hotspot-runtime-dev mailing list