We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e421ce commit 20be5e0Copy full SHA for 20be5e0
src/hotspot/share/oops/klass.cpp
@@ -726,7 +726,6 @@ void Klass::metaspace_pointers_do(MetaspaceClosure* it) {
726
}
727
728
it->push(&_name);
729
- it->push(&_secondary_super_cache);
730
it->push(&_secondary_supers);
731
for (int i = 0; i < _primary_super_limit; i++) {
732
it->push(&_primary_supers[i]);
@@ -757,6 +756,11 @@ void Klass::remove_unshareable_info() {
757
756
log_trace(cds, unshareable)("remove: %s", external_name());
758
759
+ // _secondary_super_cache may be updated by an is_subtype_of() call
760
+ // while ArchiveBuilder is copying metaspace objects. Let's reset it to
761
+ // null and let it be repopulated at runtime.
762
+ set_secondary_super_cache(nullptr);
763
+
764
set_subklass(nullptr);
765
set_next_sibling(nullptr);
766
set_next_link(nullptr);
0 commit comments