RFR: 8289049: x86_32 build fails with GCC 11 due to newString646_US warning [v3]
Thomas Stuefe
stuefe at openjdk.org
Wed Aug 17 11:30:37 UTC 2022
On Wed, 17 Aug 2022 11:05:50 GMT, Aleksey Shipilev <shade 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).
Okay, fair enough.
-------------
PR: https://git.openjdk.org/jdk/pull/9702
More information about the core-libs-dev
mailing list