Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/metaspace.hpp @ 7185:90273fc0a981
8000662: NPG: nashorn ant clean test262 out-of-memory with Java heap
Summary: Add ClassLoaderData object for each anonymous class with metaspaces to allocate in.
Reviewed-by: twisti, jrose, stefank
author | coleenp |
---|---|
date | Thu, 29 Nov 2012 16:50:29 -0500 |
parents | 6bc207d87e5d |
children | 5fafdef522c6 |
comparison
equal
deleted
inserted
replaced
7181:2fc0334f613a | 7185: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); |