On Fri, 17 Nov 2023 00:31:36 GMT, Mikael Vidstedt <mik...@openjdk.org> wrote:
> In JDK-8319818 the stringop-overflow warnings were disabled for linux-aarch64 > (fastdebug). With the changes in JDK-8319883 additional stringop-overflow > warnings are produced with GCC 13.2.0, this time for linux-x64-zero > (fastdebug). The warnings are related to GCC thinking JavaThread:current (and > Thread::current) may return nullptr where in fact they can't. I tried several > ways to convince GCC about this fact but in the end failed. > > This change disables the warning for the affected files (only). I'm not in > love with that solution but I've run out of ideas at this point. An > alternative would be to disable the warning globally, which has its own set > of pros and cons. This pull request has now been integrated. Changeset: a1e7a302 Author: Mikael Vidstedt <mik...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/a1e7a302c8a3d7a1069659653042476b20becabe Stats: 11 lines in 1 file changed: 4 ins; 7 del; 0 mod 8320212: Disable GCC stringop-overflow warning for affected files Reviewed-by: ihse, dcubed ------------- PR: https://git.openjdk.org/jdk/pull/16702