diff --git a/src/hotspot/share/jfr/leakprofiler/utilities/saveRestore.cpp b/src/hotspot/share/jfr/leakprofiler/utilities/saveRestore.cpp index 3cfff5a..f3e909c 100644 --- a/src/hotspot/share/jfr/leakprofiler/utilities/saveRestore.cpp +++ b/src/hotspot/share/jfr/leakprofiler/utilities/saveRestore.cpp @@ -74,7 +74,7 @@ CLDClaimContext::CLDClaimContext(ClassLoaderData* cld) : _cld(cld) { CLDClaimContext::~CLDClaimContext() { if (_cld != NULL) { - _cld->claim(); + _cld->claim(ClassLoaderData::_claim_value_strong); assert(_cld->claimed(), "invariant"); } }