// Wraps an instance of a MetaspaceContext together with some side objects for easy use in test beds (whitebox, gtests) class MetaspaceTestContext : public CHeapObj<mtInternal> {
// Returns reserve- and commit limit we run the test with (in the real world, // these would be equivalent to CompressedClassSpaceSize resp MaxMetaspaceSize)
size_t reserve_limit() const { return _reserve_limit == 0 ? max_uintx : 0; }
size_t commit_limit() const { return _commit_limit == 0 ? max_uintx : 0; }
// Convenience function to retrieve total committed/used words
size_t used_words() const { return _used_words_counter.get(); }
size_t committed_words() const { return _commit_limiter.committed_words(); }
DEBUG_ONLY(void verify() const;)
void print_on(outputStream* st) const;
};
} // namespace metaspace
#endif// SHARE_MEMORY_METASPACE_TESTHELPERS_HPP
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-10-03)
¤
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.