Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8343191: Cgroup v1 subsystem fails to set subsystem path #21808

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Severin Gehwolf <[email protected]>
  • Loading branch information
sercher and jerboaa authored Feb 20, 2025
commit 39f44e92e4c387d097b779b297d4dedac710a012
2 changes: 1 addition & 1 deletion src/hotspot/os/linux/cgroupV1Subsystem_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void CgroupV1Controller::set_subsystem_path(const char* cgroup_path) {
}
break;
}
suffix = strchr(suffix+1, '/');
suffix = strchr(suffix + 1, '/');
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void setPath(String cgroupPath) {
// When moved to a subgroup, between subgroups, the path suffix will change.
Path cgp = Path.of(cgroupPath);
int nameCount = cgp.getNameCount();
for (int i=0; i<nameCount; ++i) {
for (int i=0; i < nameCount; i++) {
Path dir = Path.of(mountPoint, cgp.toString());
if (Files.isDirectory(dir)) {
path = dir.toString();
Expand Down