Mercurial > hg > truffle
comparison src/share/vm/memory/universe.cpp @ 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 | da051ce490eb |
children | 209aa13ab8c0 |
comparison
equal
deleted
inserted
replaced
12996:d70a665e25d7 | 12998:a6177f601c64 |
---|---|
1027 // These are the only Java fields that are currently set during shared space dumping. | 1027 // These are the only Java fields that are currently set during shared space dumping. |
1028 // We prefer to not handle this generally, so we always reinitialize these detail messages. | 1028 // We prefer to not handle this generally, so we always reinitialize these detail messages. |
1029 Handle msg = java_lang_String::create_from_str("Java heap space", CHECK_false); | 1029 Handle msg = java_lang_String::create_from_str("Java heap space", CHECK_false); |
1030 java_lang_Throwable::set_message(Universe::_out_of_memory_error_java_heap, msg()); | 1030 java_lang_Throwable::set_message(Universe::_out_of_memory_error_java_heap, msg()); |
1031 | 1031 |
1032 msg = java_lang_String::create_from_str("Metadata space", CHECK_false); | 1032 msg = java_lang_String::create_from_str("Metaspace", CHECK_false); |
1033 java_lang_Throwable::set_message(Universe::_out_of_memory_error_metaspace, msg()); | 1033 java_lang_Throwable::set_message(Universe::_out_of_memory_error_metaspace, msg()); |
1034 msg = java_lang_String::create_from_str("Compressed class space", CHECK_false); | 1034 msg = java_lang_String::create_from_str("Compressed class space", CHECK_false); |
1035 java_lang_Throwable::set_message(Universe::_out_of_memory_error_class_metaspace, msg()); | 1035 java_lang_Throwable::set_message(Universe::_out_of_memory_error_class_metaspace, msg()); |
1036 | 1036 |
1037 msg = java_lang_String::create_from_str("Requested array size exceeds VM limit", CHECK_false); | 1037 msg = java_lang_String::create_from_str("Requested array size exceeds VM limit", CHECK_false); |