equal
deleted
inserted
replaced
522 // CDS support - remove and restore oops from metadata. Oops are not shared. |
522 // CDS support - remove and restore oops from metadata. Oops are not shared. |
523 virtual void remove_unshareable_info(); |
523 virtual void remove_unshareable_info(); |
524 virtual void remove_java_mirror(); |
524 virtual void remove_java_mirror(); |
525 virtual void restore_unshareable_info(ClassLoaderData* loader_data, Handle protection_domain, TRAPS); |
525 virtual void restore_unshareable_info(ClassLoaderData* loader_data, Handle protection_domain, TRAPS); |
526 |
526 |
|
527 bool is_unshareable_info_restored() const { |
|
528 assert(is_shared(), "use this for shared classes only"); |
|
529 if (has_raw_archived_mirror()) { |
|
530 // _java_mirror is not a valid OopHandle but rather an encoded reference in the shared heap |
|
531 return false; |
|
532 } else if (_java_mirror.ptr_raw() == NULL) { |
|
533 return false; |
|
534 } else { |
|
535 return true; |
|
536 } |
|
537 } |
|
538 |
527 public: |
539 public: |
528 // subclass accessor (here for convenience; undefined for non-klass objects) |
540 // subclass accessor (here for convenience; undefined for non-klass objects) |
529 virtual bool is_leaf_class() const { fatal("not a class"); return false; } |
541 virtual bool is_leaf_class() const { fatal("not a class"); return false; } |
530 public: |
542 public: |
531 // ALL FUNCTIONS BELOW THIS POINT ARE DISPATCHED FROM AN OOP |
543 // ALL FUNCTIONS BELOW THIS POINT ARE DISPATCHED FROM AN OOP |