RFR: JDK-8298448: UndefinedBehaviorSanitizer
David Holmes
dholmes at openjdk.org
Mon Dec 12 05:05:39 UTC 2022
On Mon, 12 Dec 2022 01:27:43 GMT, David Holmes <dholmes 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.
>
> make/autoconf/spec.gmk.in line 459:
>
>> 457:
>> 458: # UndefinedBehaviorSanitizer
>> 459: UBSAN_ENABLED:=@UBSAN_ENABLED@
>
> I don't see anything reading this. ??
To be clear there was a reason that `ASAN_ENABLED` was originally added to spec.gmk.in (though there was a suggestion it could/would be removed later), and no reason has been given for `UBSAN_ENABLED` being needed.
-------------
PR: https://git.openjdk.org/jdk/pull/11604
More information about the core-libs-dev
mailing list