hotspot/src/share/vm/memory/metaspace.hpp
changeset 18025 b7bcf7497f93
parent 17858 c292f8791cca
child 19319 0ad35be0733a
equal deleted inserted replaced
18024:f9e300086063 18025:b7bcf7497f93
   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];