Integrated: 8346888: [ubsan] block.cpp:1617:30: runtime error: 9.97582e+36 is outside the range of representable values of type 'int'
Matthias Baesken
mbaesken at openjdk.org
Fri Mar 28 08:22:34 UTC 2025
On Mon, 10 Mar 2025 13:37:23 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> When running jtreg tests on macOS aarch64 with ubsan - enabled binaries, in the test
> java/foreign/TestHandshake
> this error/warning is reported :
>
> jdk/src/hotspot/share/opto/block.cpp:1617:30: runtime error: 9.97582e+36 is outside the range of representable values of type 'int'
> UndefinedBehaviorSanitizer:DEADLYSIGNAL
> UndefinedBehaviorSanitizer: nested bug in the same thread, aborting.
>
> Seems it happens in this calculation (float value does not fit into an int) : int to_pct = (int) ((100 * freq) / target->_freq);
This pull request has now been integrated.
Changeset: ddf326b8
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ddf326b8e6e50403303b410635e4c26d7bf56aaa
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
8346888: [ubsan] block.cpp:1617:30: runtime error: 9.97582e+36 is outside the range of representable values of type 'int'
Reviewed-by: kvn, dlong
-------------
PR: https://git.openjdk.org/jdk/pull/23962
More information about the hotspot-compiler-dev
mailing list