During review discussions of JDK-8350596 it was noted that the MaxRAMPercentage bump should only happen when there is a memory limit present. That is, OSContainer::is_containerized() is not sufficient since that returns true when the JVM runs in containers without limits being present.
I suggest we introduce the following (returning boolean):
OSContainer::has_memory_limit()
It implies OSContainer::is_containerized() == true.
I suggest we introduce the following (returning boolean):
OSContainer::has_memory_limit()
It implies OSContainer::is_containerized() == true.
- links to
-
Review(master) openjdk/jdk/26020