equal
deleted
inserted
replaced
486 cl->do_oop(&_java_mirror); |
486 cl->do_oop(&_java_mirror); |
487 } |
487 } |
488 |
488 |
489 void Klass::remove_unshareable_info() { |
489 void Klass::remove_unshareable_info() { |
490 assert (DumpSharedSpaces, "only called for DumpSharedSpaces"); |
490 assert (DumpSharedSpaces, "only called for DumpSharedSpaces"); |
491 TRACE_REMOVE_KLASS_ID(this); |
491 TRACE_REMOVE_ID(this); |
492 |
492 |
493 set_subklass(NULL); |
493 set_subklass(NULL); |
494 set_next_sibling(NULL); |
494 set_next_sibling(NULL); |
495 // Clear the java mirror |
495 // Clear the java mirror |
496 set_java_mirror(NULL); |
496 set_java_mirror(NULL); |
499 // Null out class_loader_data because we don't share that yet. |
499 // Null out class_loader_data because we don't share that yet. |
500 set_class_loader_data(NULL); |
500 set_class_loader_data(NULL); |
501 } |
501 } |
502 |
502 |
503 void Klass::restore_unshareable_info(ClassLoaderData* loader_data, Handle protection_domain, TRAPS) { |
503 void Klass::restore_unshareable_info(ClassLoaderData* loader_data, Handle protection_domain, TRAPS) { |
504 TRACE_RESTORE_KLASS_ID(this); |
504 TRACE_RESTORE_ID(this); |
505 |
505 |
506 // If an exception happened during CDS restore, some of these fields may already be |
506 // If an exception happened during CDS restore, some of these fields may already be |
507 // set. We leave the class on the CLD list, even if incomplete so that we don't |
507 // set. We leave the class on the CLD list, even if incomplete so that we don't |
508 // modify the CLD list outside a safepoint. |
508 // modify the CLD list outside a safepoint. |
509 if (class_loader_data() == NULL) { |
509 if (class_loader_data() == NULL) { |