changeset 2369:f8c9a5e3f5db

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
author dcubed
date Tue, 23 Mar 2010 19:03:26 -0700
parents 8a9ebdc27045
children 26477628f2d5 1dccfa00dc64
files src/share/native/sun/management/Flag.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/management/Flag.c	Tue Mar 23 13:54:36 2010 +0000
+++ b/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: