< prev index next >
src/hotspot/share/classfile/classLoaderStats.cpp
Print this page
@@ -57,11 +57,11 @@
_total_loaders++;
} else {
cls = *cls_ptr;
}
- if (!cld->is_unsafe_anonymous()) {
+ if (!cld->is_shortlived()) {
cls->_cld = cld;
}
cls->_class_loader = cl;
if (cl != NULL) {
@@ -69,20 +69,20 @@
addEmptyParents(cls->_parent);
}
ClassStatsClosure csc;
cld->classes_do(&csc);
- if(cld->is_unsafe_anonymous()) {
+ if(cld->is_shortlived()) {
cls->_anon_classes_count += csc._num_classes;
} else {
cls->_classes_count = csc._num_classes;
}
_total_classes += csc._num_classes;
ClassLoaderMetaspace* ms = cld->metaspace_or_null();
if (ms != NULL) {
- if(cld->is_unsafe_anonymous()) {
+ if(cld->is_shortlived()) {
cls->_anon_chunk_sz += ms->allocated_chunks_bytes();
cls->_anon_block_sz += ms->allocated_blocks_bytes();
} else {
cls->_chunk_sz = ms->allocated_chunks_bytes();
cls->_block_sz = ms->allocated_blocks_bytes();
< prev index next >