< prev index next >

src/jdk.management/unix/classes/com/sun/management/internal/OperatingSystemImpl.java

Print this page
@  rev 57585 : 8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
|  Reviewed-by: bobv
~

*** 1,7 **** /* ! * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 168,178 **** public double getProcessCpuLoad() { return getProcessCpuLoad0(); } private boolean isCpuSetSameAsHostCpuSet() { ! if (containerMetrics != null) { return containerMetrics.getCpuSetCpus().length == getHostConfiguredCpuCount0(); } return false; } --- 168,178 ---- public double getProcessCpuLoad() { return getProcessCpuLoad0(); } private boolean isCpuSetSameAsHostCpuSet() { ! if (containerMetrics != null && containerMetrics.getCpuSetCpus() != null) { return containerMetrics.getCpuSetCpus().length == getHostConfiguredCpuCount0(); } return false; }
< prev index next >