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
*** old/src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java Mon May 6 16:01:35 2019
--- new/src/java.base/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java Mon May 6 16:01:35 2019
*** 1,7 ****
--- 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 ****
--- 59,69 ----
else {
if (root.equals(cgroupPath)) {
path = mountPoint;
}
else {
! if (root.indexOf(cgroupPath) == 0) {
! 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