< prev index next >
src/hotspot/share/classfile/systemDictionary.cpp
Print this page
*** 2295,2305 ****
if (UseBiasedLocking && BiasedLocking::enabled()) {
// Set biased locking bit for all loaded classes; it will be
// cleared if revocation occurs too often for this type
// NOTE that we must only do this when the class is initally
// defined, not each time it is referenced from a new class loader
! if (k->class_loader() == class_loader()) {
k->set_prototype_header(markOopDesc::biased_locking_prototype());
}
}
// Make a new dictionary entry.
--- 2295,2305 ----
if (UseBiasedLocking && BiasedLocking::enabled()) {
// Set biased locking bit for all loaded classes; it will be
// cleared if revocation occurs too often for this type
// NOTE that we must only do this when the class is initally
// defined, not each time it is referenced from a new class loader
! if (k->class_loader() == class_loader() && !k->is_value()) {
k->set_prototype_header(markOopDesc::biased_locking_prototype());
}
}
// Make a new dictionary entry.
< prev index next >