< prev index next >
src/hotspot/share/classfile/systemDictionaryShared.cpp
Print this page
*** 1140,1149 ****
--- 1140,1156 ----
SystemDictionary::add_to_hierarchy(k, CHECK_false);
}
return created;
}
+ void SystemDictionaryShared::add_shared_to_hierarchy(InstanceKlass* k, TRAPS) {
+ Arguments::assert_is_dumping_archive();
+ assert(!k->is_loaded(), "Invariant");
+ assert_locked_or_safepoint(Compile_lock); // add_to_hierarchy assert on it.
+ 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,1389 ****
--- 1387,1401 ----
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 >