8043896: Error reporting for insufficient shared region size is incorrect
authorminqi
Tue, 27 May 2014 21:58:23 -0700
changeset 24826 ad80eed312fc
parent 24665 51cb5579adb3
child 24827 82b56982e1af
child 24828 dd5406c950a1
8043896: Error reporting for insufficient shared region size is incorrect Summary: In SharedSpaceType, we have three enum types which are used in report_out_of_shared_space(SharedSpaceType type). In fact we supplied more than three messages and flags. This leads the warning always gives wrong message with the first not used. Reviewed-by: iklam, coleenp Contributed-by: yumin.qi@oracle.com
hotspot/src/share/vm/utilities/debug.cpp
--- a/hotspot/src/share/vm/utilities/debug.cpp	Tue May 27 08:44:23 2014 -0700
+++ b/hotspot/src/share/vm/utilities/debug.cpp	Tue May 27 21:58:23 2014 -0700
@@ -263,13 +263,11 @@
 
 void report_out_of_shared_space(SharedSpaceType shared_space) {
   static const char* name[] = {
-    "native memory for metadata",
     "shared read only space",
     "shared read write space",
     "shared miscellaneous data space"
   };
   static const char* flag[] = {
-    "Metaspace",
     "SharedReadOnlySize",
     "SharedReadWriteSize",
     "SharedMiscDataSize"