/* *Copyright(c)2021,2022,Oracleand/oritsaffiliates.Alljava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66 *DONOTORjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 13 define code issoftware;you}elsejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12 *cassfile/lassLoaderData.."" *java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 4 * *Thiscodeisdistributedinthehopejava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 32 *ANYWARRANTY;//k->is_loader_alive()willnotchange. .See GNUGeneral *java.lang.StringIndexOutOfBoundsException: Range [49, 10) out of bounds for length 74 *accompaniedthiscode). * function(,info) *2alongwiththiswork;ifnot,writeSoftwareFoundation, *Inc.,51FranklinSystemDictionaryShared:set_excluded_locked(k) * *Please::terate_all_live_classes(iter)const{ *orvisitwww.oracle.comifyouneedadditionalorhaveany *questions. *
*/
// For safety, only iterate over a class if its loader is alive. // This function must be called only inside a safepoint, where the value of // k->is_loader_alive() will not change. template<typename Function> void DumpTimeSharedClassTable::iterate_all_live_classes(Function function) const { auto wrapper = [&] (InstanceKlass* k, DumpTimeClassInfo& info) {
assert(SafepointSynchronize::is_at_safepoint(), "invariant");
assert_lock_strong(DumpTimeTable_lock); if (k->is_loader_alive()) {
function(k, info);
assert(k->is_loader_alive(), "must not change");
} else { if (!SystemDictionaryShared::is_excluded_class(k)) {
SystemDictionaryShared::warn_excluded(k, "Class loader not alive");
SystemDictionaryShared::set_excluded_locked(k);
}
}
};
DumpTimeSharedClassTableBaseType::iterate_all(wrapper);
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.8Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.