--- old/src/share/vm/utilities/debug.cpp 2014-12-19 10:02:46.033210492 -0800 +++ new/src/share/vm/utilities/debug.cpp 2014-12-19 10:02:45.901201320 -0800 @@ -273,6 +273,14 @@ exit(2); } +void report_insufficient_metaspace(uintx required_size) { + warning("\nThe MaxMetaspaceSize of " UINTX_FORMAT " bytes is not large enough.\n" + "Either don't specify the -XX:MaxMetaspaceSize=\n" + "or increase the size to at least " UINTX_FORMAT ".\n", + MaxMetaspaceSize, required_size); + exit(2); +} + void report_java_out_of_memory(const char* message) { static jint out_of_memory_reported = 0;