RFR: 8261242: [Linux] OSContainer::is_containerized() returns true when run outside a container [v2]
Severin Gehwolf
sgehwolf at openjdk.org
Fri May 3 15:57:57 UTC 2024
On Tue, 16 Apr 2024 18:16:33 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> Severin Gehwolf has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains ten additional commits since the last revision:
>>
>> - Merge branch 'master' into jdk-8261242-is-containerized-fix
>> - jcheck fixes
>> - Fix tests
>> - Implement Metrics.isContainerized()
>> - Some clean-up
>> - Drop cgroups testing on plain Linux
>> - Implement fall-back logic for non-ro controller mounts
>> - Make find_ro static and local to compilation unit
>> - 8261242: [Linux] OSContainer::is_containerized() returns true
>
> src/hotspot/os/linux/osContainer_linux.cpp line 78:
>
>> 76: const char *reason;
>> 77: bool any_mem_cpu_limit_present = false;
>> 78: bool ctrl_ro = cgroup_subsystem->is_containerized();
>
> nit: naming? what does ctrl mean in this case? Maybe use "cgroup_is_containerized"?
`ctrl` was short for `controller`. I've changed the naming.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18201#discussion_r1589391426
More information about the serviceability-dev
mailing list