From d876c863f45217d3f53775752c1764c6d82909b4 Mon Sep 17 00:00:00 2001 From: dcubed Date: Tue, 23 Mar 2010 19:03:26 -0700 Subject: [PATCH] 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 --- src/share/native/sun/management/Flag.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/share/native/sun/management/Flag.c b/src/share/native/sun/management/Flag.c index e488d13e8..5c803dc0f 100644 --- a/src/share/native/sun/management/Flag.c +++ b/src/share/native/sun/management/Flag.c @@ -133,11 +133,8 @@ Java_sun_management_Flag_getFlags 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: -- GitLab