< prev index next >
src/hotspot/share/classfile/systemDictionaryShared.cpp
Print this page
@@ -1140,10 +1140,19 @@
SystemDictionary::add_to_hierarchy(k, CHECK_false);
}
return created;
}
+void SystemDictionaryShared::add_replaced_class(InstanceKlass* k, TRAPS) {
+ Arguments::assert_is_dumping_archive();
+ assert(!k->is_loaded(), "Invariant");
+ {
+ MutexLocker mu_r(THREAD, Compile_lock); // add_to_hierarchy asserts this.
+ SystemDictionary::add_to_hierarchy(k, CHECK);
+ }
+}
+
// This function is called to resolve the super/interfaces of shared classes for
// non-built-in loaders. E.g., ChildClass in the below example
// where "super:" (and optionally "interface:") have been specified.
//
// java/lang/Object id: 0
@@ -1380,10 +1389,15 @@
ExcludeDumpTimeSharedClasses excl;
_dumptime_table->iterate(&excl);
_dumptime_table->update_counts();
}
+void SystemDictionaryShared::set_excluded(InstanceKlass* k) {
+ Arguments::assert_is_dumping_archive();
+ find_or_allocate_info_for(k)->set_excluded();
+}
+
bool SystemDictionaryShared::is_excluded_class(InstanceKlass* k) {
assert(_no_class_loading_should_happen, "sanity");
Arguments::assert_is_dumping_archive();
return find_or_allocate_info_for(k)->is_excluded();
}
< prev index next >