< prev index next >

src/java.base/linux/classes/jdk/internal/platform/cgroupv1/CgroupV1SubsystemController.java

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

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 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

@@ -24,10 +24,11 @@
  */
 
 package jdk.internal.platform.cgroupv1;
 
 import jdk.internal.platform.CgroupSubsystemController;
+import jdk.internal.platform.Metrics;
 
 public class CgroupV1SubsystemController implements CgroupSubsystemController {
 
     // Values returned larger than this number are unlimited.
     static long UNLIMITED_MIN = 0x7FFFFFFFFF000000L;

@@ -74,8 +75,8 @@
     public static long convertStringToLong(String strval) {
         return CgroupSubsystemController.convertStringToLong(strval, Long.MAX_VALUE);
     }
 
     public static long longValOrUnlimited(long value) {
-        return value > UNLIMITED_MIN ? CgroupSubsystemController.RETVAL_UNLIMITED : value;
+        return value > UNLIMITED_MIN ? Metrics.LONG_RETVAL_UNLIMITED : value;
     }
 }
< prev index next >