jlong MutableSpaceUsedHelper::take_sample() { // Sampling may occur during GC, possibly while GC is updating the space. // The space can be in an inconsistent state during such an update. We // don't want to block sampling for the duration of a GC. Instead, skip // sampling in that case, using the last recorded value.
assert(!Heap_lock->owned_by_self(), "precondition"); if (Heap_lock->try_lock()) {
Atomic::store(&last_used_in_bytes, _m->used_in_bytes());
Heap_lock->unlock();
} return Atomic::load(&last_used_in_bytes);
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-10)
¤
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.