< prev index next >
src/hotspot/share/memory/metaspace/printCLDMetaspaceInfoClosure.cpp
Print this page
rev 58565 : 8238358: Implementation of JEP 371: Hidden Classes
Reviewed-by: duke
Contributed-by: mandy.chung@oracle.com, lois.foltan@oracle.com, david.holmes@oracle.com, harold.seigel@oracle.com, serguei.spitsyn@oracle.com, alex.buckley@oracle.com, jamsheed.c.m@oracle.com
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -102,11 +102,11 @@
if (_do_print) {
_out->print(UINTX_FORMAT_W(4) ": ", _num_loaders);
// Print "CLD for [<loader name>,] instance of <loader class name>"
- // or "CLD for <anonymous class>, loaded by [<loader name>,] instance of <loader class name>"
+ // or "CLD for <weak hidden or anonymous class>, loaded by [<loader name>,] instance of <loader class name>"
ResourceMark rm;
const char* name = NULL;
const char* class_name = NULL;
@@ -126,12 +126,12 @@
_out->print("CLD " PTR_FORMAT, p2i(cld));
if (cld->is_unloading()) {
_out->print(" (unloading)");
}
_out->print(":");
- if (cld->is_unsafe_anonymous()) {
- _out->print(" <anonymous class>, loaded by");
+ if (cld->has_class_mirror_holder()) {
+ _out->print(" <weak hidden or anonymous class>, loaded by");
}
if (name != NULL) {
_out->print(" \"%s\"", name);
}
if (class_name != NULL) {
< prev index next >