On Mon, 12 Dec 2022 07:02:04 GMT, Justin King <jck...@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: > > Add comment explaining __ubsan_default_options and UBSAN_OPTIONS > > Signed-off-by: Justin King <jck...@google.com> src/java.base/share/native/launcher/main.c line 49: > 47: #endif // UNDEFINED_BEHAVIOR_SANITIZER > 48: > 49: /* As I said we have more launcher than 'java', if you put this method here you must put it in all launchers. I.e. all binaries that call JNI_CreateJavaVM, such our tests, e.g. jni/daemonDestroy/TestDaemonDestroy.java ------------- PR: https://git.openjdk.org/jdk/pull/11604