RFR: 8353468: [ubsan] arguments.cpp:2422:23: runtime error: 2.14748e+11 is outside the range of representable values of type 'int'

David Holmes dholmes at openjdk.org
Thu Aug 21 01:10:52 UTC 2025


On Wed, 20 Aug 2025 12:12:01 GMT, Afshin Zafari <azafari at openjdk.org> wrote:

> In converting values of `-XMinf` and `-XMaxf` options to `int`, overflow was not checked. 
> The values are checked against INT_MAX and clamped.
> 
> Tests: tiers 1-5.

I guess this keeps ubsan happy. The constraint function for the actual globals will reject anything outside the range 1..100.

Thanks

-------------

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26859#pullrequestreview-3138705180


More information about the hotspot-runtime-dev mailing list