src/share/classes/sun/management/ManagementFactoryHelper.java

Print this page

        

@@ -265,11 +265,11 @@
     private static HotspotCompilation hsCompileMBean = null;
     private static HotspotMemory hsMemoryMBean = null;
 
     public static synchronized HotSpotDiagnosticMXBean getDiagnosticMXBean() {
         if (hsDiagMBean == null) {
-            hsDiagMBean = new HotSpotDiagnostic();
+            hsDiagMBean = new HotSpotDiagnostic(jvm);
         }
         return hsDiagMBean;
     }
 
     /**