hotspot/src/share/vm/utilities/debug.cpp
changeset 8076 96d498ec7ae1
parent 7719 ef138e2849eb
child 8921 14bfe81f2a9d
equal deleted inserted replaced
8075:582dd25571b2 8076:96d498ec7ae1
   261 #ifndef PRODUCT
   261 #ifndef PRODUCT
   262   warning("Untested: %s in %s: %d\n", message, file, line);
   262   warning("Untested: %s in %s: %d\n", message, file, line);
   263 #endif // PRODUCT
   263 #endif // PRODUCT
   264 }
   264 }
   265 
   265 
       
   266 void report_out_of_shared_space(SharedSpaceType shared_space) {
       
   267   static const char* name[] = {
       
   268     "permanent generation",
       
   269     "shared read only space",
       
   270     "shared read write space",
       
   271     "shared miscellaneous data space"
       
   272   };
       
   273   static const char* flag[] = {
       
   274     "PermGen",
       
   275     "SharedReadOnlySize",
       
   276     "SharedReadWriteSize",
       
   277     "SharedMiscDataSize"
       
   278   };
       
   279 
       
   280    warning("\nThe %s is not large enough\n"
       
   281            "to preload requested classes. Use -XX:%s=\n"
       
   282            "to increase the initial size of %s.\n",
       
   283            name[shared_space], flag[shared_space], name[shared_space]);
       
   284    exit(2);
       
   285 }
       
   286 
   266 void report_java_out_of_memory(const char* message) {
   287 void report_java_out_of_memory(const char* message) {
   267   static jint out_of_memory_reported = 0;
   288   static jint out_of_memory_reported = 0;
   268 
   289 
   269   // A number of threads may attempt to report OutOfMemoryError at around the
   290   // A number of threads may attempt to report OutOfMemoryError at around the
   270   // same time. To avoid dumping the heap or executing the data collection
   291   // same time. To avoid dumping the heap or executing the data collection