Integrated: 8361037: [ubsan] compiler/c2/irTests/TestFloat16ScalarOperations division by 0
Jatin Bhateja
jbhateja at openjdk.org
Thu Jul 3 08:06:44 UTC 2025
On Tue, 1 Jul 2025 10:08:20 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
> Floating point division by zero is undefined per the C and C++ standards, but is defined by Clang (and by ISO/IEC/IEEE 60559 / IEEE 754) as producing either an infinity or NaN value.
>
> While Java semantics defined in section 15.17.2 "Division Operator" of JLS-24 are well-defined for these constant-folding scenarios
>
> This bug fix patch fixes division by 0 error reported after integration of [JDK-8352635.](https://bugs.openjdk.org/browse/JDK-8352635)
> Kindly review and share your feedback.
>
> Best Regards,
> Jatin
This pull request has now been integrated.
Changeset: 2f683fdc
Author: Jatin Bhateja <jbhateja at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2f683fdc4a8f9c227e878b0d7fca645fc8abe1b6
Stats: 23 lines in 1 file changed: 23 ins; 0 del; 0 mod
8361037: [ubsan] compiler/c2/irTests/TestFloat16ScalarOperations division by 0
Reviewed-by: mhaessig, sviswanathan
-------------
PR: https://git.openjdk.org/jdk/pull/26062
More information about the hotspot-compiler-dev
mailing list