markWord markWord::displaced_mark_helper() const {
assert(has_displaced_mark_helper(), "check"); if (has_monitor()) { // Has an inflated monitor. Must be checked before has_locker().
ObjectMonitor* monitor = this->monitor(); return monitor->header();
} if (has_locker()) { // has a stack lock
BasicLock* locker = this->locker(); return locker->displaced_header();
} // This should never happen:
fatal("bad header=" INTPTR_FORMAT, value()); return markWord(value());
}
void markWord::set_displaced_mark_helper(markWord m) const {
assert(has_displaced_mark_helper(), "check"); if (has_monitor()) { // Has an inflated monitor. Must be checked before has_locker().
ObjectMonitor* monitor = this->monitor();
monitor->set_header(m); return;
} if (has_locker()) { // has a stack lock
BasicLock* locker = this->locker();
locker->set_displaced_header(m); return;
} // This should never happen:
fatal("bad header=" INTPTR_FORMAT, value());
}
void markWord::print_on(outputStream* st, bool print_monitor_info) const { if (is_marked()) { // last bits = 11
st->print(" marked(" INTPTR_FORMAT ")", value());
} elseif (has_monitor()) { // last bits = 10 // have to check has_monitor() before is_locked()
st->print(" monitor(" INTPTR_FORMAT ")=", value()); if (print_monitor_info) {
ObjectMonitor* mon = monitor(); if (mon == NULL) {
st->print("NULL (this should never be seen!)");
} else {
mon->print_on(st);
}
}
} elseif (is_locked()) { // last bits != 01 => 00 // thin locked
st->print(" locked(" INTPTR_FORMAT ")", value());
} else {
st->print(" mark("); if (is_neutral()) { // last bits = 01
st->print("is_neutral"); if (has_no_hash()) {
st->print(" no_hash");
} else {
st->print(" hash=" INTPTR_FORMAT, hash());
}
} else {
st->print("??");
}
st->print(" age=%d)", age());
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-09-11)
¤
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.