8043896: Error reporting for insufficient shared region size is incorrect

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
This commit is contained in:
Yumin Qi 2014-05-27 21:58:23 -07:00 committed by Yumin Qi
parent 49c3c35a14
commit 1a3734cdfa

View File

@ -263,13 +263,11 @@ void report_untested(const char* file, int line, const char* message) {
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"