< prev index next >
src/hotspot/share/classfile/systemDictionaryShared.cpp
Print this page
@@ -1148,10 +1148,16 @@
SystemDictionary::add_to_hierarchy(k, CHECK_false);
}
return created;
}
+void SystemDictionaryShared::add_to_hierarchy(InstanceKlass* k, TRAPS) {
+ Arguments::assert_is_dumping_archive();
+ 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
@@ -1402,10 +1408,18 @@
Arguments::assert_is_dumping_archive();
DumpTimeSharedClassInfo* p = find_or_allocate_info_for(k);
return (p == NULL) ? true : p->is_excluded();
}
+void SystemDictionaryShared::set_excluded(InstanceKlass* k) {
+ Arguments::assert_is_dumping_archive();
+ DumpTimeSharedClassInfo* info = find_or_allocate_info_for(k);
+ if (info != NULL) {
+ info->set_excluded();
+ }
+}
+
void SystemDictionaryShared::set_class_has_failed_verification(InstanceKlass* ik) {
Arguments::assert_is_dumping_archive();
DumpTimeSharedClassInfo* p = find_or_allocate_info_for(ik);
if (p != NULL) {
p->set_failed_verification();
< prev index next >