Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/classes/sun/management/VMManagementImpl.java
          +++ new/src/share/classes/sun/management/VMManagementImpl.java
   1    1  /*
   2      - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
        2 + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
   3    3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4    4   *
   5    5   * This code is free software; you can redistribute it and/or modify it
   6    6   * under the terms of the GNU General Public License version 2 only, as
   7    7   * published by the Free Software Foundation.  Oracle designates this
   8    8   * particular file as subject to the "Classpath" exception as provided
   9    9   * by Oracle in the LICENSE file that accompanied this code.
  10   10   *
  11   11   * This code is distributed in the hope that it will be useful, but WITHOUT
  12   12   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
↓ open down ↓ 37 lines elided ↑ open up ↑
  50   50  
  51   51      private static boolean compTimeMonitoringSupport;
  52   52      private static boolean threadContentionMonitoringSupport;
  53   53      private static boolean currentThreadCpuTimeSupport;
  54   54      private static boolean otherThreadCpuTimeSupport;
  55   55      private static boolean bootClassPathSupport;
  56   56      private static boolean objectMonitorUsageSupport;
  57   57      private static boolean synchronizerUsageSupport;
  58   58      private static boolean threadAllocatedMemorySupport;
  59   59      private static boolean gcNotificationSupport;
       60 +    private static boolean remoteDiagnosticCommandsSupport;
  60   61  
  61   62  
  62   63      static {
  63   64          version = getVersion0();
  64   65          if (version == null) {
  65   66              throw new AssertionError("Invalid Management Version");
  66   67          }
  67   68          initOptionalSupportFields();
  68   69      }
  69   70      private native static String getVersion0();
↓ open down ↓ 28 lines elided ↑ open up ↑
  98   99          return synchronizerUsageSupport;
  99  100      }
 100  101  
 101  102      public boolean isThreadAllocatedMemorySupported() {
 102  103          return threadAllocatedMemorySupport;
 103  104      }
 104  105  
 105  106      public boolean isGcNotificationSupported() {
 106  107          return gcNotificationSupport;
 107  108      }
      109 +    
      110 +    public boolean isRemoteDiagnosticCommandsSupported() {
      111 +        return remoteDiagnosticCommandsSupport;
      112 +    }
 108  113  
 109  114      public native boolean isThreadContentionMonitoringEnabled();
 110  115      public native boolean isThreadCpuTimeEnabled();
 111  116      public native boolean isThreadAllocatedMemoryEnabled();
 112  117  
 113  118      // Class Loading Subsystem
 114  119      public int    getLoadedClassCount() {
 115  120          long count = getTotalClassCount() - getUnloadedClassCount();
 116  121          return (int) count;
 117  122      }
↓ open down ↓ 154 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX