Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/metaspace.hpp @ 8825:dbd5837b342f
8000754: NPG: Implement a MemoryPool MXBean for Metaspace
Reviewed-by: jmasa, stefank
author | ehelin |
---|---|
date | Fri, 22 Mar 2013 16:10:01 +0100 |
parents | e51c9860cf66 |
children | 42e370795a39 |
comparison
equal
deleted
inserted
replaced
8824:7f16d1812865 | 8825:dbd5837b342f |
---|---|
155 void verify(); | 155 void verify(); |
156 }; | 156 }; |
157 | 157 |
158 class MetaspaceAux : AllStatic { | 158 class MetaspaceAux : AllStatic { |
159 | 159 |
160 static size_t free_chunks_total(Metaspace::MetadataType mdtype); | |
161 static size_t free_chunks_total_in_bytes(Metaspace::MetadataType mdtype); | |
162 | |
163 public: | |
160 // Statistics for class space and data space in metaspace. | 164 // Statistics for class space and data space in metaspace. |
161 static size_t used_in_bytes(Metaspace::MetadataType mdtype); | 165 static size_t used_in_bytes(Metaspace::MetadataType mdtype); |
162 static size_t free_in_bytes(Metaspace::MetadataType mdtype); | 166 static size_t free_in_bytes(Metaspace::MetadataType mdtype); |
163 static size_t capacity_in_bytes(Metaspace::MetadataType mdtype); | 167 static size_t capacity_in_bytes(Metaspace::MetadataType mdtype); |
164 static size_t reserved_in_bytes(Metaspace::MetadataType mdtype); | 168 static size_t reserved_in_bytes(Metaspace::MetadataType mdtype); |
165 | 169 |
166 static size_t free_chunks_total(Metaspace::MetadataType mdtype); | |
167 static size_t free_chunks_total_in_bytes(Metaspace::MetadataType mdtype); | |
168 | |
169 public: | |
170 // Total of space allocated to metadata in all Metaspaces | 170 // Total of space allocated to metadata in all Metaspaces |
171 static size_t used_in_bytes() { | 171 static size_t used_in_bytes() { |
172 return used_in_bytes(Metaspace::ClassType) + | 172 return used_in_bytes(Metaspace::ClassType) + |
173 used_in_bytes(Metaspace::NonClassType); | 173 used_in_bytes(Metaspace::NonClassType); |
174 } | 174 } |