hotspot/src/share/vm/utilities/debug.cpp
changeset 46746 ea379ebb9447
parent 46589 f1c04490ded1
--- a/hotspot/src/share/vm/utilities/debug.cpp	Sat Jul 22 15:54:27 2017 -0400
+++ b/hotspot/src/share/vm/utilities/debug.cpp	Wed Aug 02 18:06:38 2017 -0700
@@ -275,42 +275,6 @@
 #endif // !PRODUCT
 }
 
-void report_out_of_shared_space(SharedSpaceType shared_space) {
-  if (shared_space == SharedOptional) {
-    // The estimated shared_optional_space size is large enough
-    // for all class bytes.  It should not run out of space.
-    ShouldNotReachHere();
-  }
-
-  static const char* name[] = {
-    "shared read only space",
-    "shared read write space",
-    "shared miscellaneous data space",
-    "shared miscellaneous code space"
-  };
-  static const char* flag[] = {
-    "SharedReadOnlySize",
-    "SharedReadWriteSize",
-    "SharedMiscDataSize",
-    "SharedMiscCodeSize"
-  };
-
-   warning("\nThe %s is not large enough\n"
-           "to preload requested classes. Use -XX:%s=<size>\n"
-           "to increase the initial size of %s.\n",
-           name[shared_space], flag[shared_space], name[shared_space]);
-   exit(2);
-}
-
-
-void report_insufficient_metaspace(size_t required_size) {
-  warning("\nThe MaxMetaspaceSize of " SIZE_FORMAT " bytes is not large enough.\n"
-          "Either don't specify the -XX:MaxMetaspaceSize=<size>\n"
-          "or increase the size to at least " SIZE_FORMAT ".\n",
-          MaxMetaspaceSize, required_size);
-  exit(2);
-}
-
 void report_java_out_of_memory(const char* message) {
   static jint out_of_memory_reported = 0;