mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8198833: TestMemoryAwareness Docker container fails with too small maximum heap
Reviewed-by: bobv, dholmes
This commit is contained in:
parent
fc389b5284
commit
f4bb0fe332
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ julong os::physical_memory() {
|
||||||
jlong mem_limit;
|
jlong mem_limit;
|
||||||
if ((mem_limit = OSContainer::memory_limit_in_bytes()) > 0) {
|
if ((mem_limit = OSContainer::memory_limit_in_bytes()) > 0) {
|
||||||
log_trace(os)("total container memory: " JLONG_FORMAT, mem_limit);
|
log_trace(os)("total container memory: " JLONG_FORMAT, mem_limit);
|
||||||
return phys_mem;
|
return mem_limit;
|
||||||
}
|
}
|
||||||
log_debug(os, container)("container memory limit %s: " JLONG_FORMAT ", using host value",
|
log_debug(os, container)("container memory limit %s: " JLONG_FORMAT ", using host value",
|
||||||
mem_limit == OSCONTAINER_ERROR ? "failed" : "unlimited", mem_limit);
|
mem_limit == OSCONTAINER_ERROR ? "failed" : "unlimited", mem_limit);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue