src/share/vm/oops/klass.cpp

Print this page
rev 12364 : 8170672: Event-based tracing to support classloader instances
Reviewed-by:

*** 486,496 **** cl->do_oop(&_java_mirror); } void Klass::remove_unshareable_info() { assert (DumpSharedSpaces, "only called for DumpSharedSpaces"); ! TRACE_REMOVE_KLASS_ID(this); set_subklass(NULL); set_next_sibling(NULL); // Clear the java mirror set_java_mirror(NULL); --- 486,496 ---- cl->do_oop(&_java_mirror); } void Klass::remove_unshareable_info() { assert (DumpSharedSpaces, "only called for DumpSharedSpaces"); ! TRACE_REMOVE_ID(this); set_subklass(NULL); set_next_sibling(NULL); // Clear the java mirror set_java_mirror(NULL);
*** 499,509 **** // Null out class_loader_data because we don't share that yet. set_class_loader_data(NULL); } void Klass::restore_unshareable_info(ClassLoaderData* loader_data, Handle protection_domain, TRAPS) { ! TRACE_RESTORE_KLASS_ID(this); // If an exception happened during CDS restore, some of these fields may already be // set. We leave the class on the CLD list, even if incomplete so that we don't // modify the CLD list outside a safepoint. if (class_loader_data() == NULL) { --- 499,509 ---- // Null out class_loader_data because we don't share that yet. set_class_loader_data(NULL); } void Klass::restore_unshareable_info(ClassLoaderData* loader_data, Handle protection_domain, TRAPS) { ! TRACE_RESTORE_ID(this); // If an exception happened during CDS restore, some of these fields may already be // set. We leave the class on the CLD list, even if incomplete so that we don't // modify the CLD list outside a safepoint. if (class_loader_data() == NULL) {