changeset 54814:207b7bf04f49

8222533: jtreg test jdk/internal/platform/cgroup/TestCgroupMetrics.java fails on SLES12.3 linux ppc64le machine Reviewed-by: mseledtsov, dholmes
author bobv
date Fri, 10 May 2019 11:18:45 -0400
parents 0fe908af327e
children 1e83e1a600cb
files src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java	Fri May 10 11:15:34 2019 -0400
+++ b/src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java	Fri May 10 11:18:45 2019 -0400
@@ -108,7 +108,7 @@
         try {
             List<String> lines = Files.readAllLines(Paths.get(subsystem.path(), param));
             for (String line: lines) {
-                if (line.contains(match)) {
+                if (line.startsWith(match)) {
                     retval = conversion.apply(line);
                     break;
                 }