6915365: 3/4 assert(false,"Unsupported VMGlobal Type") at management.cpp:1540
authordcubed
Tue, 23 Mar 2010 19:03:26 -0700
changeset 5163 e13f471e8dd5
parent 5162 0dbedf4fdb8c
child 5164 337ae296b6d6
child 5195 dcc229e35a4e
6915365: 3/4 assert(false,"Unsupported VMGlobal Type") at management.cpp:1540 Summary: Remove exception throw to decouple JDK and HotSpot additions of known types. Reviewed-by: mchung
jdk/src/share/native/sun/management/Flag.c
--- a/jdk/src/share/native/sun/management/Flag.c	Tue Mar 23 13:54:36 2010 +0000
+++ b/jdk/src/share/native/sun/management/Flag.c	Tue Mar 23 19:03:26 2010 -0700
@@ -133,11 +133,8 @@
                                            globals[i].value.j);
             break;
         default:
-            // unsupported type
-            sprintf(errmsg, "Unsupported VMGlobal Type %d", globals[i].type);
-            JNU_ThrowInternalError(env, errmsg);
-            free(globals);
-            return 0;
+            // ignore unsupported type
+            continue;
         }
         switch (globals[i].origin) {
         case JMM_VMGLOBAL_ORIGIN_DEFAULT: