equal
deleted
inserted
replaced
495 set_java_mirror(NULL); |
495 set_java_mirror(NULL); |
496 set_next_link(NULL); |
496 set_next_link(NULL); |
497 |
497 |
498 // Null out class_loader_data because we don't share that yet. |
498 // Null out class_loader_data because we don't share that yet. |
499 set_class_loader_data(NULL); |
499 set_class_loader_data(NULL); |
|
500 set_is_shared(); |
500 } |
501 } |
501 |
502 |
502 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) { |
503 assert(is_klass(), "ensure C++ vtable is restored"); |
504 assert(is_klass(), "ensure C++ vtable is restored"); |
|
505 assert(is_shared(), "must be set"); |
504 TRACE_RESTORE_ID(this); |
506 TRACE_RESTORE_ID(this); |
505 |
507 |
506 // If an exception happened during CDS restore, some of these fields may already be |
508 // 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 |
509 // 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. |
510 // modify the CLD list outside a safepoint. |