Mercurial > hg > truffle
comparison src/share/vm/memory/metaspace.hpp @ 12340:bc918fd1e584
8025279: metaspace/flags/maxMetaspaceSize throws OOM: out of Compressed Klass space
Summary: Only put "Compressed class space" as OOM cause if actually using Compressed class space
Reviewed-by: jwilhelm, stefank, ehelin, coleenp
author | mgerdin |
---|---|
date | Fri, 27 Sep 2013 10:23:12 +0200 |
parents | b960c9df4f11 |
children | 85c1ca43713f |
comparison
equal
deleted
inserted
replaced
12339:c319b188c7b2 | 12340:bc918fd1e584 |
---|---|
233 // Return TRUE only if UseCompressedClassPointers is True and DumpSharedSpaces is False. | 233 // Return TRUE only if UseCompressedClassPointers is True and DumpSharedSpaces is False. |
234 static bool using_class_space() { | 234 static bool using_class_space() { |
235 return NOT_LP64(false) LP64_ONLY(UseCompressedClassPointers && !DumpSharedSpaces); | 235 return NOT_LP64(false) LP64_ONLY(UseCompressedClassPointers && !DumpSharedSpaces); |
236 } | 236 } |
237 | 237 |
238 static bool is_class_space_allocation(MetadataType mdType) { | |
239 return mdType == ClassType && using_class_space(); | |
240 } | |
238 }; | 241 }; |
239 | 242 |
240 class MetaspaceAux : AllStatic { | 243 class MetaspaceAux : AllStatic { |
241 static size_t free_chunks_total_words(Metaspace::MetadataType mdtype); | 244 static size_t free_chunks_total_words(Metaspace::MetadataType mdtype); |
242 | 245 |