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
--- 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"