On Wed, 17 Aug 2022 11:05:50 GMT, Aleksey Shipilev <sh...@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