diff 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
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.hpp	Thu Sep 26 12:49:45 2013 +0200
+++ b/src/share/vm/memory/metaspace.hpp	Fri Sep 27 10:23:12 2013 +0200
@@ -235,6 +235,9 @@
     return NOT_LP64(false) LP64_ONLY(UseCompressedClassPointers && !DumpSharedSpaces);
   }
 
+  static bool is_class_space_allocation(MetadataType mdType) {
+    return mdType == ClassType && using_class_space();
+  }
 };
 
 class MetaspaceAux : AllStatic {