< prev index next >

src/hotspot/share/classfile/loaderConstraints.cpp

Print this page

        

*** 106,127 **** lt.print("purging class object from constraint for name %s," " loader list:", probe->name()->as_C_string()); for (int i = 0; i < probe->num_loaders(); i++) { lt.print(" [%d]: %s", i, ! probe->loader_data(i)->loader_name()); } } } // Remove entries no longer alive from loader array int n = 0; while (n < probe->num_loaders()) { if (probe->loader_data(n)->is_unloading()) { if (lt.is_enabled()) { ResourceMark rm; lt.print("purging loader %s from constraint for name %s", ! probe->loader_data(n)->loader_name(), probe->name()->as_C_string() ); } // Compact array --- 106,127 ---- lt.print("purging class object from constraint for name %s," " loader list:", probe->name()->as_C_string()); for (int i = 0; i < probe->num_loaders(); i++) { lt.print(" [%d]: %s", i, ! probe->loader_data(i)->loader_name_and_id()); } } } // Remove entries no longer alive from loader array int n = 0; while (n < probe->num_loaders()) { if (probe->loader_data(n)->is_unloading()) { if (lt.is_enabled()) { ResourceMark rm; lt.print("purging loader %s from constraint for name %s", ! probe->loader_data(n)->loader_name_and_id(), probe->name()->as_C_string() ); } // Compact array
*** 133,143 **** if (lt.is_enabled()) { ResourceMark rm; lt.print("new loader list:"); for (int i = 0; i < probe->num_loaders(); i++) { lt.print(" [%d]: %s", i, ! probe->loader_data(i)->loader_name()); } } continue; // current element replaced, so restart without // incrementing n --- 133,143 ---- if (lt.is_enabled()) { ResourceMark rm; lt.print("new loader list:"); for (int i = 0; i < probe->num_loaders(); i++) { lt.print(" [%d]: %s", i, ! probe->loader_data(i)->loader_name_and_id()); } } continue; // current element replaced, so restart without // incrementing n
*** 175,186 **** if (lt.is_enabled()) { ResourceMark rm; lt.print("Failed to add constraint for name: %s, loader[0]: %s," " loader[1]: %s, Reason: %s", class_name->as_C_string(), ! SystemDictionary::loader_name(class_loader1()), ! SystemDictionary::loader_name(class_loader2()), reason); } } bool LoaderConstraintTable::add_entry(Symbol* class_name, --- 175,186 ---- if (lt.is_enabled()) { ResourceMark rm; lt.print("Failed to add constraint for name: %s, loader[0]: %s," " loader[1]: %s, Reason: %s", class_name->as_C_string(), ! ClassLoaderData::class_loader_data(class_loader1())->loader_name_and_id(), ! ClassLoaderData::class_loader_data(class_loader2())->loader_name_and_id(), reason); } } bool LoaderConstraintTable::add_entry(Symbol* class_name,
*** 245,256 **** if (lt.is_enabled()) { ResourceMark rm; lt.print("adding new constraint for name: %s, loader[0]: %s," " loader[1]: %s", class_name->as_C_string(), ! SystemDictionary::loader_name(class_loader1()), ! SystemDictionary::loader_name(class_loader2()) ); } } else if (*pp1 == *pp2) { /* constraint already imposed */ if ((*pp1)->klass() == NULL) { --- 245,256 ---- if (lt.is_enabled()) { ResourceMark rm; lt.print("adding new constraint for name: %s, loader[0]: %s," " loader[1]: %s", class_name->as_C_string(), ! ClassLoaderData::class_loader_data(class_loader1())->loader_name_and_id(), ! ClassLoaderData::class_loader_data(class_loader2())->loader_name_and_id() ); } } else if (*pp1 == *pp2) { /* constraint already imposed */ if ((*pp1)->klass() == NULL) {
*** 258,268 **** if (lt.is_enabled()) { ResourceMark rm; lt.print("setting class object in existing constraint for" " name: %s and loader %s", class_name->as_C_string(), ! SystemDictionary::loader_name(class_loader1()) ); } } else { assert((*pp1)->klass() == klass, "loader constraints corrupted"); } --- 258,268 ---- if (lt.is_enabled()) { ResourceMark rm; lt.print("setting class object in existing constraint for" " name: %s and loader %s", class_name->as_C_string(), ! ClassLoaderData::class_loader_data(class_loader1())->loader_name_and_id() ); } } else { assert((*pp1)->klass() == klass, "loader constraints corrupted"); }
*** 289,310 **** if (lt.is_enabled()) { ResourceMark rm; lt.print("constraint check failed for name %s, loader %s: " "the presented class object differs from that stored", name->as_C_string(), ! SystemDictionary::loader_name(loader())); } return false; } else { if (p && p->klass() == NULL) { p->set_klass(k); if (lt.is_enabled()) { ResourceMark rm; lt.print("updating constraint for name %s, loader %s, " "by setting class object", name->as_C_string(), ! SystemDictionary::loader_name(loader())); } } return true; } } --- 289,310 ---- if (lt.is_enabled()) { ResourceMark rm; lt.print("constraint check failed for name %s, loader %s: " "the presented class object differs from that stored", name->as_C_string(), ! ClassLoaderData::class_loader_data(loader())->loader_name_and_id()); } return false; } else { if (p && p->klass() == NULL) { p->set_klass(k); if (lt.is_enabled()) { ResourceMark rm; lt.print("updating constraint for name %s, loader %s, " "by setting class object", name->as_C_string(), ! ClassLoaderData::class_loader_data(loader())->loader_name_and_id()); } } return true; } }
*** 351,361 **** if (lt.is_enabled()) { ResourceMark rm; lt.print("extending constraint for name %s by adding loader[%d]: %s %s", p->name()->as_C_string(), num, ! SystemDictionary::loader_name(loader()), (p->klass() == NULL ? " and setting class object" : "") ); } if (p->klass() == NULL) { p->set_klass(klass); --- 351,361 ---- if (lt.is_enabled()) { ResourceMark rm; lt.print("extending constraint for name %s by adding loader[%d]: %s %s", p->name()->as_C_string(), num, ! ClassLoaderData::class_loader_data(loader())->loader_name_and_id(), (p->klass() == NULL ? " and setting class object" : "") ); } if (p->klass() == NULL) { p->set_klass(klass);
*** 394,404 **** p1->name()->as_C_string() ); for (int i = 0; i < p1->num_loaders(); i++) { lt.print(" [%d]: %s", i, ! p1->loader_data(i)->loader_name()); } if (p1->klass() == NULL) { lt.print("... and setting class object"); } } --- 394,404 ---- p1->name()->as_C_string() ); for (int i = 0; i < p1->num_loaders(); i++) { lt.print(" [%d]: %s", i, ! p1->loader_data(i)->loader_name_and_id()); } if (p1->klass() == NULL) { lt.print("... and setting class object"); } }
< prev index next >