mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8192154: JVM crashes inside some chroot environments on linux
Reviewed-by: dholmes, sgehwolf, glaubitz
This commit is contained in:
parent
3faa620f4c
commit
0e7f779f1b
1 changed files with 7 additions and 7 deletions
|
@ -323,7 +323,12 @@ void OSContainer::init() {
|
|||
}
|
||||
}
|
||||
|
||||
if (mntinfo != NULL) fclose(mntinfo);
|
||||
fclose(mntinfo);
|
||||
|
||||
if (memory == NULL || cpuset == NULL || cpu == NULL || cpuacct == NULL) {
|
||||
log_debug(os, container)("Required cgroup subsystems not found");
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Read /proc/self/cgroup and map host mount point to
|
||||
|
@ -383,12 +388,7 @@ void OSContainer::init() {
|
|||
}
|
||||
}
|
||||
|
||||
if (cgroup != NULL) fclose(cgroup);
|
||||
|
||||
if (memory == NULL || cpuset == NULL || cpu == NULL) {
|
||||
log_debug(os, container)("Required cgroup subsystems not found");
|
||||
return;
|
||||
}
|
||||
fclose(cgroup);
|
||||
|
||||
// We need to update the amount of physical memory now that
|
||||
// command line arguments have been processed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue