RFR: 8367319: Add os interfaces to get machine and container values separately [v2]
Casper Norrbin
cnorrbin at openjdk.org
Tue Oct 7 12:22:54 UTC 2025
On Tue, 7 Oct 2025 10:52:10 GMT, David Holmes <dholmes at openjdk.org> wrote:
> So basically what you are looking for here is a way to get around the "broken" definition of available-processors when quotas are enforced.
Partly, yes. The cpu quota is the clearest example, but the same mismatch shows up for other values. The meaning of the container values don't always map 1:1 to OS numbers. What I'm after is a clean way to get those numbers separately. Pairing `machine_` and `container_` gives access to both pieces of data, offering just the machine side would leave us without a direct path to the container value.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27646#issuecomment-3376638884
More information about the hotspot-dev
mailing list