comparison src/share/vm/memory/metaspace.hpp @ 10405:f2110083203d

8005849: JEP 167: Event-Based JVM Tracing Reviewed-by: acorn, coleenp, sla Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
author sla
date Mon, 10 Jun 2013 11:30:51 +0200
parents a1ebd310d5c1
children 740e263c80c6
comparison
equal deleted inserted replaced
10404:d0add7016434 10405:f2110083203d
191 191
192 void iterate(AllocRecordClosure *closure); 192 void iterate(AllocRecordClosure *closure);
193 }; 193 };
194 194
195 class MetaspaceAux : AllStatic { 195 class MetaspaceAux : AllStatic {
196 196 static size_t free_chunks_total(Metaspace::MetadataType mdtype);
197 static size_t free_chunks_total_in_bytes(Metaspace::MetadataType mdtype);
198
199 public:
197 // Statistics for class space and data space in metaspace. 200 // Statistics for class space and data space in metaspace.
198 201
199 // These methods iterate over the classloader data graph 202 // These methods iterate over the classloader data graph
200 // for the given Metaspace type. These are slow. 203 // for the given Metaspace type. These are slow.
201 static size_t used_bytes_slow(Metaspace::MetadataType mdtype); 204 static size_t used_bytes_slow(Metaspace::MetadataType mdtype);
203 static size_t capacity_bytes_slow(Metaspace::MetadataType mdtype); 206 static size_t capacity_bytes_slow(Metaspace::MetadataType mdtype);
204 207
205 // Iterates over the virtual space list. 208 // Iterates over the virtual space list.
206 static size_t reserved_in_bytes(Metaspace::MetadataType mdtype); 209 static size_t reserved_in_bytes(Metaspace::MetadataType mdtype);
207 210
208 static size_t free_chunks_total(Metaspace::MetadataType mdtype);
209 static size_t free_chunks_total_in_bytes(Metaspace::MetadataType mdtype);
210
211 public:
212 // Running sum of space in all Metachunks that has been 211 // Running sum of space in all Metachunks that has been
213 // allocated to a Metaspace. This is used instead of 212 // allocated to a Metaspace. This is used instead of
214 // iterating over all the classloaders. One for each 213 // iterating over all the classloaders. One for each
215 // type of Metadata 214 // type of Metadata
216 static size_t _allocated_capacity_words[Metaspace:: MetadataTypeCount]; 215 static size_t _allocated_capacity_words[Metaspace:: MetadataTypeCount];