RFR: JDK-8281274: deal with ActiveProcessorCount in os::Linux::print_container_info [v2]

Matthias Baesken mbaesken at openjdk.java.net
Mon Feb 7 08:39:03 UTC 2022


On Fri, 4 Feb 2022 17:26:57 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Looks fine.
> 
> While looking at this I found that the default for ActiveProcessorCount is -1. The VM only reacts to this flag if it is >0. So, what is 0? The java man page is not saying. Maybe the default should just be 0 to be consistent.

Thanks for the review. Indeed only ActiveProcessorCount  > 0  results in special handling, so 0 and -1 are both leading to the same runtime behavior.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7354


More information about the hotspot-runtime-dev mailing list