RFR: 8367319: Add os interfaces to get machine and container values separately
Albert Mingkun Yang
ayang at openjdk.org
Mon Oct 6 14:26:19 UTC 2025
On Mon, 6 Oct 2025 12:51:22 GMT, Casper Norrbin <cnorrbin at openjdk.org> wrote:
> For most use cases, this is fine, users only care about the returned value. But for other use cases, where the value originated is important.
Then, is it possible to keep the original API for "most use cases"? For others, they can query `is_containerized` and new `machine_` APIs.
The current proposed API kind of forces all users to distinguish btw inside a container or not, even though most use cases don't care.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27646#issuecomment-3371953487
More information about the hotspot-dev
mailing list