[jdk8u-dev] RFR: 8230305: Cgroups v2: Container awareness [v2]
Jonathan Dowland
jdowland at openjdk.org
Mon Oct 31 09:44:06 UTC 2022
On Fri, 28 Oct 2022 21:11:45 GMT, Poonam Bajaj <poonam at openjdk.org> wrote:
>> I've spent some time trying to understand this issue, and this is my current understanding of it. ARM32 is the circumstance which surfaced the problem, but this is not an ARM32 problem. The syntax here was introduced in C++11. The minimal (GCC) compiler version stated for JDK8u is GCC 4.3, which has only partial, experimental support for C++11. You didn't state what compiler you were using but I'm going to assume it's one in the supported list for jdk8u. What I take from this is, JDK8u can't use all C++11 features, since some of the supported compiler-versions don't have all C++11 features; and in particular this feature.
>>
>> These lines of code are unchanged in jdk mainline at the moment, however, jdk has moved forward the minimal supported compiler version. I doubt that a fix for this would be received favourably in jdk mainline, so we probably need to address it in jdk8u-dev directly (not via backport).
>
> The build where I saw compilation failures was on a 32-bit platform with C++ compiler version 4.7.2. Here's the error message:
> error: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [-Werror]
>
> In our jdk8 backport, we initialize these data members using constructor initializer-list.
I've just pushed a commit that should resolve this (e6fcc66863e). Thanks for bringing it up!
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/127
More information about the jdk8u-dev
mailing list