RFR: 8289049: x86_32 build fails with GCC 11 due to newString646_US warning [v3]
Aleksey Shipilev
shade at openjdk.org
Wed Aug 17 11:09:13 UTC 2022
On Wed, 17 Aug 2022 08:55:58 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> I'm confused. How does adding EnsureCapacity in newString646_US fix the compiler warning mentioned in JBS?
I think this is a bona-fide compiler static analyzer bug. GCC 12 compiles this code fine. So, we have two options: a) disable the warnings for this code block; b) harmonize all code blocks to use the same style, which is also incidentally avoids the false warning. This PR does (b).
-------------
PR: https://git.openjdk.org/jdk/pull/9702
More information about the core-libs-dev
mailing list