RFR: JDK-8298448: UndefinedBehaviorSanitizer [v8]
Justin King
jcking at openjdk.org
Tue Dec 13 08:20:44 UTC 2022
On Mon, 12 Dec 2022 10:42:22 GMT, Justin King <jcking at openjdk.org> wrote:
>> Allow building OpenJDK with UBSan. Currently the build fails when optimizing the image due to lots of undefined behavior (it invokes the built JVM). Follow up PRs will either replace the undefined behavior with well defined behavior or suppress errors which are intentional. The goal is to make OpenJDK more well defined and thus more portable across compilers and architectures.
>
> Justin King has updated the pull request incrementally with one additional commit since the last revision:
>
> Simplify logic for including __ubsan_default_options
>
> Signed-off-by: Justin King <jcking at google.com>
I tried to use a single file, but the build logic attempts to compile as either C or C++ based on file extensions, and has logic based on it. So if I use `.cpp` and the target is all `.c` odd things happen. The same for the inverse.
-------------
PR: https://git.openjdk.org/jdk/pull/11604
More information about the core-libs-dev
mailing list