src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2018, 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) 2018, 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
*** 59,69 **** else { if (root.equals(cgroupPath)) { path = mountPoint; } else { ! if (root.indexOf(cgroupPath) == 0) { if (cgroupPath.length() > root.length()) { String cgroupSubstr = cgroupPath.substring(root.length()); path = mountPoint + cgroupSubstr; } } --- 59,69 ---- else { if (root.equals(cgroupPath)) { path = mountPoint; } else { ! if (cgroupPath.indexOf(root) == 0) { if (cgroupPath.length() > root.length()) { String cgroupSubstr = cgroupPath.substring(root.length()); path = mountPoint + cgroupSubstr; } }
src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File