Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/metaspace.hpp @ 7187:5fafdef522c6
Merge
author | johnc |
---|---|
date | Fri, 30 Nov 2012 12:01:34 -0800 |
parents | 59c790074993 90273fc0a981 |
children | c71879335291 |
comparison
equal
deleted
inserted
replaced
7184:5505fbbae3d3 | 7187:5fafdef522c6 |
---|---|
154 static size_t free_chunks_total(Metaspace::MetadataType mdtype); | 154 static size_t free_chunks_total(Metaspace::MetadataType mdtype); |
155 static size_t free_chunks_total_in_bytes(Metaspace::MetadataType mdtype); | 155 static size_t free_chunks_total_in_bytes(Metaspace::MetadataType mdtype); |
156 | 156 |
157 public: | 157 public: |
158 // Total of space allocated to metadata in all Metaspaces | 158 // Total of space allocated to metadata in all Metaspaces |
159 static size_t used_in_bytes() { | 159 static size_t used_in_bytes(); |
160 return used_in_bytes(Metaspace::ClassType) + | |
161 used_in_bytes(Metaspace::NonClassType); | |
162 } | |
163 | 160 |
164 // Total of available space in all Metaspaces | 161 // Total of available space in all Metaspaces |
165 // Total of capacity allocated to all Metaspaces. This includes | 162 // Total of capacity allocated to all Metaspaces. This includes |
166 // space in Metachunks not yet allocated and in the Metachunk | 163 // space in Metachunks not yet allocated and in the Metachunk |
167 // freelist. | 164 // freelist. |
168 static size_t capacity_in_bytes() { | 165 static size_t capacity_in_bytes(); |
169 return capacity_in_bytes(Metaspace::ClassType) + | |
170 capacity_in_bytes(Metaspace::NonClassType); | |
171 } | |
172 | 166 |
173 // Total space reserved in all Metaspaces | 167 // Total space reserved in all Metaspaces |
174 static size_t reserved_in_bytes() { | 168 static size_t reserved_in_bytes(); |
175 return reserved_in_bytes(Metaspace::ClassType) + | |
176 reserved_in_bytes(Metaspace::NonClassType); | |
177 } | |
178 | 169 |
179 static size_t min_chunk_size(); | 170 static size_t min_chunk_size(); |
180 | 171 |
181 // Print change in used metadata. | 172 // Print change in used metadata. |
182 static void print_metaspace_change(size_t prev_metadata_used); | 173 static void print_metaspace_change(size_t prev_metadata_used); |