// Reserve a range of memory at an address suitable for en/decoding narrow // Klass pointers (see: CompressedClassPointers::is_valid_base()). // The returned address shall both be suitable as a compressed class pointers // base, and aligned to Metaspace::reserve_alignment (which is equal to or a // multiple of allocation granularity). // On error, returns an unreserved space. static ReservedSpace reserve_address_space_for_compressed_classes(size_t size);
// Given a prereserved space, use that to set up the compressed class space list. staticvoid initialize_class_space(ReservedSpace rs);
// Returns true if class space has been setup (initialize_class_space). staticbool class_space_is_initialized();
// Alignment, in bytes, of metaspace mappings static size_t reserve_alignment() { return reserve_alignment_words() * BytesPerWord; } // Alignment, in words, of metaspace mappings static size_t reserve_alignment_words();
// The granularity at which Metaspace is committed and uncommitted. // (Todo: Why does this have to be exposed?) static size_t commit_alignment() { return commit_alignment_words() * BytesPerWord; } static size_t commit_alignment_words();
// The largest possible single allocation static size_t max_allocation_word_size();
// Non-TRAPS version of allocate which can be called by a non-Java thread, that returns // NULL on failure. static MetaWord* allocate(ClassLoaderData* loader_data, size_t word_size,
MetaspaceObj::Type type);
// Return TRUE only if UseCompressedClassPointers is True. staticbool using_class_space() { return NOT_LP64(false) LP64_ONLY(UseCompressedClassPointers);
}
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.