[jdk8u-dev] RFR: 8197408: Bad pointer comparison and small cleanup in os_linux.cpp
Jonathan Dowland
jdowland at openjdk.org
Thu Nov 10 10:41:43 UTC 2022
On Wed, 9 Nov 2022 10:25:03 GMT, Jonathan Dowland <jdowland at openjdk.org> wrote:
> This is a backport of [JDK-8197408](https://bugs.openjdk.org/browse/JDK-8197408) to jdk8u-dev as part of cgroups v2. I've backported it as a pre-requisite for 8278951: containers/cgroup/PlainRead.java fails on Ubuntu 21.10 (<https://github.com/openjdk/jdk8u-dev/pull/155>)
>
> Most of the original patch has been integrated already: I've left a whitespace change in for os_linux.cpp to hopefully avoid context problems later on. The majority of this patch is introducing the test PlainRead.java.
>
> Not clean: test adjustments to jtreg metadata, imports, and JVM flags needed.
The test passes for me in a cgroups v1 host. I think the state (passes on v1, fails on v2) is consistent with the state of things when this patch was committed. I think a later patch might fix this for v2, but it's moot if we consider backporting 8281181, which removes the check against CPU Shares entirely.
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/164
More information about the jdk8u-dev
mailing list