< prev index next >
src/hotspot/share/memory/metaspace.hpp
Print this page
rev 49184 : 8198423: Improve metaspace chunk allocation
Reviewed-by: goetz, coleenp
*** 87,96 ****
--- 87,97 ----
friend class MetaspaceGC;
friend class MetaspaceAux;
friend class MetaspaceShared;
friend class CollectedHeap;
friend class PrintCLDMetaspaceInfoClosure;
+ friend class MetaspaceAllocationTest;
public:
enum MetadataType {
ClassType,
NonClassType,
*** 174,183 ****
--- 175,189 ----
static ChunkManager* get_chunk_manager(MetadataType mdtype) {
assert(mdtype != MetadataTypeCount, "MetadaTypeCount can't be used as mdtype");
return mdtype == ClassType ? chunk_manager_class() : chunk_manager_metadata();
}
+ // convenience function
+ static ChunkManager* get_chunk_manager(bool is_class) {
+ return is_class ? chunk_manager_class() : chunk_manager_metadata();
+ }
+
static const MetaspaceTracer* tracer() { return _tracer; }
static void freeze() {
assert(DumpSharedSpaces, "sanity");
DEBUG_ONLY(_frozen = true;)
}
< prev index next >