RFR: 8266172: -Wstringop-overflow happens in vmError.cpp
David Holmes
dholmes at openjdk.java.net
Thu Apr 29 14:17:52 UTC 2021
On Thu, 29 Apr 2021 07:26:05 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:
> We can see following compiler warnings in vmError.cpp on GCC 11.
>
>
> In function 'void crash_with_segfault()',
> inlined from 'static void VMError::controlled_crash(int)' at /home/ysuenaga/github-forked/jdk/src/hotspot/share/utilities/vmError.cpp:1804:33:
I'm not sure whether to disable the warning via pragma, as this is a bogus warning, or whether to side-step by changing to int* as you have.
As long as we still crash "correctly" I suppose this is okay.
Thanks,
David
-------------
Marked as reviewed by dholmes (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/3789
More information about the hotspot-dev
mailing list