8220579: [Containers] SubSystem.java out of sync with osContainer_linux.cpp
authorsgehwolf
Wed, 13 Mar 2019 20:07:54 +0100
changeset 54176 2786541e4f91
parent 54175 36e0665773e7
child 54177 b4779a44476b
8220579: [Containers] SubSystem.java out of sync with osContainer_linux.cpp Reviewed-by: bobv, adinn
src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java
--- a/src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java	Mon Mar 18 11:50:41 2019 +0100
+++ b/src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java	Wed Mar 13 20:07:54 2019 +0100
@@ -48,7 +48,7 @@
     public void setPath(String cgroupPath) {
         if (root != null && cgroupPath != null) {
             if (root.equals("/")) {
-                if (cgroupPath.equals("/")) {
+                if (!cgroupPath.equals("/")) {
                     path = mountPoint + cgroupPath;
                 }
                 else {