jdk/src/java.management/share/classes/sun/management/VMManagementImpl.java
changeset 36511 9d0388c6b336
parent 34953 67245e3259bf
child 42102 3e0a2861efe1
equal deleted inserted replaced
36510:043f1af70518 36511:9d0388c6b336
    49 
    49 
    50     private static boolean compTimeMonitoringSupport;
    50     private static boolean compTimeMonitoringSupport;
    51     private static boolean threadContentionMonitoringSupport;
    51     private static boolean threadContentionMonitoringSupport;
    52     private static boolean currentThreadCpuTimeSupport;
    52     private static boolean currentThreadCpuTimeSupport;
    53     private static boolean otherThreadCpuTimeSupport;
    53     private static boolean otherThreadCpuTimeSupport;
    54     private static boolean bootClassPathSupport;
       
    55     private static boolean objectMonitorUsageSupport;
    54     private static boolean objectMonitorUsageSupport;
    56     private static boolean synchronizerUsageSupport;
    55     private static boolean synchronizerUsageSupport;
    57     private static boolean threadAllocatedMemorySupport;
    56     private static boolean threadAllocatedMemorySupport;
    58     private static boolean gcNotificationSupport;
    57     private static boolean gcNotificationSupport;
    59     private static boolean remoteDiagnosticCommandsSupport;
    58     private static boolean remoteDiagnosticCommandsSupport;
    85     public boolean isOtherThreadCpuTimeSupported() {
    84     public boolean isOtherThreadCpuTimeSupported() {
    86         return otherThreadCpuTimeSupport;
    85         return otherThreadCpuTimeSupport;
    87     }
    86     }
    88 
    87 
    89     public boolean isBootClassPathSupported() {
    88     public boolean isBootClassPathSupported() {
    90         return bootClassPathSupport;
    89         return false;
    91     }
    90     }
    92 
    91 
    93     public boolean isObjectMonitorUsageSupported() {
    92     public boolean isObjectMonitorUsageSupported() {
    94         return objectMonitorUsageSupport;
    93         return objectMonitorUsageSupport;
    95     }
    94     }
   170     public String   getLibraryPath()  {
   169     public String   getLibraryPath()  {
   171         return System.getProperty("java.library.path");
   170         return System.getProperty("java.library.path");
   172     }
   171     }
   173 
   172 
   174     public String   getBootClassPath( ) {
   173     public String   getBootClassPath( ) {
   175         return AccessController.doPrivileged(
   174         throw new UnsupportedOperationException(
   176             (PrivilegedAction<String>) () -> System.getProperty("sun.boot.class.path"));
   175             "Boot class path mechanism is not supported");
   177     }
   176     }
   178 
   177 
   179     public long getUptime() {
   178     public long getUptime() {
   180         return getUptime0();
   179         return getUptime0();
   181     }
   180     }