src/share/vm/memory/metaspace.hpp

changeset 4304
90273fc0a981
parent 4264
6bc207d87e5d
child 4306
5fafdef522c6
equal deleted inserted replaced
4300:2fc0334f613a 4304:90273fc0a981
158 static size_t free_chunks_total(Metaspace::MetadataType mdtype); 158 static size_t free_chunks_total(Metaspace::MetadataType mdtype);
159 static size_t free_chunks_total_in_bytes(Metaspace::MetadataType mdtype); 159 static size_t free_chunks_total_in_bytes(Metaspace::MetadataType mdtype);
160 160
161 public: 161 public:
162 // Total of space allocated to metadata in all Metaspaces 162 // Total of space allocated to metadata in all Metaspaces
163 static size_t used_in_bytes() { 163 static size_t used_in_bytes();
164 return used_in_bytes(Metaspace::ClassType) +
165 used_in_bytes(Metaspace::NonClassType);
166 }
167 164
168 // Total of available space in all Metaspaces 165 // Total of available space in all Metaspaces
169 // Total of capacity allocated to all Metaspaces. This includes 166 // Total of capacity allocated to all Metaspaces. This includes
170 // space in Metachunks not yet allocated and in the Metachunk 167 // space in Metachunks not yet allocated and in the Metachunk
171 // freelist. 168 // freelist.
172 static size_t capacity_in_bytes() { 169 static size_t capacity_in_bytes();
173 return capacity_in_bytes(Metaspace::ClassType) +
174 capacity_in_bytes(Metaspace::NonClassType);
175 }
176 170
177 // Total space reserved in all Metaspaces 171 // Total space reserved in all Metaspaces
178 static size_t reserved_in_bytes() { 172 static size_t reserved_in_bytes();
179 return reserved_in_bytes(Metaspace::ClassType) +
180 reserved_in_bytes(Metaspace::NonClassType);
181 }
182 173
183 static size_t min_chunk_size(); 174 static size_t min_chunk_size();
184 175
185 // Print change in used metadata. 176 // Print change in used metadata.
186 static void print_metaspace_change(size_t prev_metadata_used); 177 static void print_metaspace_change(size_t prev_metadata_used);

mercurial