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