Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.hpp Thu Oct 24 22:19:48 2013 -0700 +++ b/src/share/vm/memory/metaspace.hpp Fri Oct 25 11:05:32 2013 -0400 @@ -192,6 +192,8 @@ AllocRecord * _alloc_record_head; AllocRecord * _alloc_record_tail; + size_t class_chunk_size(size_t word_size); + public: Metaspace(Mutex* lock, MetaspaceType type); @@ -252,6 +254,7 @@ static bool is_class_space_allocation(MetadataType mdType) { return mdType == ClassType && using_class_space(); } + }; class MetaspaceAux : AllStatic {