Mercurial > hg > truffle
comparison src/share/vm/memory/metaspace.hpp @ 12998:a6177f601c64
8026822: metaspace/flags/maxMetaspaceSize throws OOM of unexpected type.java.lang.OutOfMemoryError: Compressed class space
Summary: Incorporate chunk size when seeing if OutOfMemoryError was caused by Metaspace or Compressed class space.
Reviewed-by: stefank, coleenp
author | hseigel |
---|---|
date | Fri, 25 Oct 2013 11:05:32 -0400 |
parents | bdfbb1fb19ca |
children | 209aa13ab8c0 |
comparison
equal
deleted
inserted
replaced
12996:d70a665e25d7 | 12998:a6177f601c64 |
---|---|
190 }; | 190 }; |
191 | 191 |
192 AllocRecord * _alloc_record_head; | 192 AllocRecord * _alloc_record_head; |
193 AllocRecord * _alloc_record_tail; | 193 AllocRecord * _alloc_record_tail; |
194 | 194 |
195 size_t class_chunk_size(size_t word_size); | |
196 | |
195 public: | 197 public: |
196 | 198 |
197 Metaspace(Mutex* lock, MetaspaceType type); | 199 Metaspace(Mutex* lock, MetaspaceType type); |
198 ~Metaspace(); | 200 ~Metaspace(); |
199 | 201 |
250 } | 252 } |
251 | 253 |
252 static bool is_class_space_allocation(MetadataType mdType) { | 254 static bool is_class_space_allocation(MetadataType mdType) { |
253 return mdType == ClassType && using_class_space(); | 255 return mdType == ClassType && using_class_space(); |
254 } | 256 } |
257 | |
255 }; | 258 }; |
256 | 259 |
257 class MetaspaceAux : AllStatic { | 260 class MetaspaceAux : AllStatic { |
258 static size_t free_chunks_total_words(Metaspace::MetadataType mdtype); | 261 static size_t free_chunks_total_words(Metaspace::MetadataType mdtype); |
259 | 262 |