equal
deleted
inserted
replaced
96 } |
96 } |
97 |
97 |
98 MetaspacePerfCounters* CompressedClassSpaceCounters::_perf_counters = NULL; |
98 MetaspacePerfCounters* CompressedClassSpaceCounters::_perf_counters = NULL; |
99 |
99 |
100 size_t CompressedClassSpaceCounters::used() { |
100 size_t CompressedClassSpaceCounters::used() { |
101 return MetaspaceUtils::used_bytes(metaspace::ClassType); |
101 return MetaspaceUtils::used_bytes(Metaspace::ClassType); |
102 } |
102 } |
103 |
103 |
104 size_t CompressedClassSpaceCounters::capacity() { |
104 size_t CompressedClassSpaceCounters::capacity() { |
105 return MetaspaceUtils::committed_bytes(metaspace::ClassType); |
105 return MetaspaceUtils::committed_bytes(Metaspace::ClassType); |
106 } |
106 } |
107 |
107 |
108 size_t CompressedClassSpaceCounters::max_capacity() { |
108 size_t CompressedClassSpaceCounters::max_capacity() { |
109 return MetaspaceUtils::reserved_bytes(metaspace::ClassType); |
109 return MetaspaceUtils::reserved_bytes(Metaspace::ClassType); |
110 } |
110 } |
111 |
111 |
112 void CompressedClassSpaceCounters::update_performance_counters() { |
112 void CompressedClassSpaceCounters::update_performance_counters() { |
113 if (UsePerfData && UseCompressedClassPointers) { |
113 if (UsePerfData && UseCompressedClassPointers) { |
114 assert(_perf_counters != NULL, "Should be initialized"); |
114 assert(_perf_counters != NULL, "Should be initialized"); |