src/jdk.internal.vm.compiler.management/share/classes/org.graalvm.compiler.hotspot.management/src/org/graalvm/compiler/hotspot/management/HotSpotGraalManagement.java
equal
deleted
inserted
replaced
154 ArrayList<MBeanServer> servers = MBeanServerFactory.findMBeanServer(null); |
154 ArrayList<MBeanServer> servers = MBeanServerFactory.findMBeanServer(null); |
155 if (!servers.isEmpty()) { |
155 if (!servers.isEmpty()) { |
156 platformMBeanServer = ManagementFactory.getPlatformMBeanServer(); |
156 platformMBeanServer = ManagementFactory.getPlatformMBeanServer(); |
157 process(); |
157 process(); |
158 } |
158 } |
159 } catch (SecurityException e) { |
159 } catch (SecurityException | UnsatisfiedLinkError | NoClassDefFoundError | UnsupportedOperationException e) { |
160 // Without permission to find or create the MBeanServer, |
160 // Without permission to find or create the MBeanServer, |
161 // we cannot process any Graal mbeans. |
161 // we cannot process any Graal mbeans. |
|
162 // Various other errors can occur in the ManagementFactory (JDK-8076557) |
162 deferred = null; |
163 deferred = null; |
163 } |
164 } |
164 } else { |
165 } else { |
165 process(); |
166 process(); |
166 } |
167 } |