When running ubsan-enabled binaries on macOS aarch64, in test javax/management/MBeanServer/OldMBeanServerTest.java the following division by zero is shown : src/jdk.management/macosx/native/libmanagement_ext/UnixOperatingSystem.c:67:40: runtime error: division by zero UndefinedBehaviorSanitizer:DEADLYSIGNAL UndefinedBehaviorSanitizer: nested bug in the same thread, aborting.
We should add special handling for the case ` (total_delta == 0)` . ------------- Commit messages: - JDK-8347267 Changes: https://git.openjdk.org/jdk/pull/23010/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23010&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8347267 Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/23010.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23010/head:pull/23010 PR: https://git.openjdk.org/jdk/pull/23010