< prev index next >
src/hotspot/share/oops/instanceKlass.cpp
Print this page
@@ -2471,11 +2471,11 @@
}
}
// returns true IFF is_in_error_state() has been changed as a result of this call.
bool InstanceKlass::check_sharing_error_state() {
- assert(DumpSharedSpaces, "should only be called during dumping");
+ Arguments::assert_is_dumping_archive();
bool old_state = is_in_error_state();
if (!is_in_error_state()) {
bool bad = false;
for (InstanceKlass* sup = java_super(); sup; sup = sup->java_super()) {
@@ -3574,11 +3574,11 @@
// Verify that klass is present in ClassLoaderData
guarantee(class_loader_data()->contains_klass(this),
"this class isn't found in class loader data");
// Verify vtables
- if (is_linked()) {
+ if (is_linked() && !is_in_error_state()) {
// $$$ This used to be done only for m/s collections. Doing it
// always seemed a valid generalization. (DLD -- 6/00)
vtable().verify(st);
}
< prev index next >