src/windows/classes/sun/management/OperatingSystemImpl.java

Print this page

        

*** 21,50 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package com.sun.management; ! import sun.management.VMManagement; /** * Implementation class for the operating system. * Standard and committed hotspot-specific metrics if any. * * ManagementFactory.getOperatingSystemMXBean() returns an instance * of this class. */ ! class OperatingSystem ! extends sun.management.OperatingSystemImpl implements OperatingSystemMXBean { // psapiLock is a lock to make sure only one thread loading // PSAPI DLL. private static Object psapiLock = new Object(); ! OperatingSystem(VMManagement vm) { super(vm); } public long getCommittedVirtualMemorySize() { synchronized (psapiLock) { --- 21,49 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package sun.management; ! import java.lang.management.OperatingSystemMXBean; /** * Implementation class for the operating system. * Standard and committed hotspot-specific metrics if any. * * ManagementFactory.getOperatingSystemMXBean() returns an instance * of this class. */ ! class OperatingSystemImpl extends AbstractOperatingSystemImpl implements OperatingSystemMXBean { // psapiLock is a lock to make sure only one thread loading // PSAPI DLL. private static Object psapiLock = new Object(); ! OperatingSystemImpl(VMManagement vm) { super(vm); } public long getCommittedVirtualMemorySize() { synchronized (psapiLock) {