RFR: 8358696: Assert with extreme values for -XX:BciProfileWidth [v4]

Saranya Natarajan snatarajan at openjdk.org
Wed Jul 23 15:18:39 UTC 2025


On Tue, 22 Jul 2025 12:59:35 GMT, Saranya Natarajan <snatarajan at openjdk.org> wrote:

>> src/hotspot/share/runtime/globals.hpp line 1354:
>> 
>>> 1352:           range(0, 8)                                                       \
>>> 1353:                                                                             \
>>> 1354:   develop(intx, BciProfileWidth, 2,                                         \
>> 
>> Recently, I've seen someone complaining about useless use of `intx`, saying that is brings less readability than a more fixed-width type when not needed. Here, [0, 5000] fits in 16 bits (even signed). One could change that into a simple `int` or something like that.
>
> Since `int` seems to fit the range. I have changed `intx` to `int `. Currently, fixing some test failures. I will address the failures in next commit.

I have now resolved the failing test cases.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26139#discussion_r2225921554


More information about the hotspot-compiler-dev mailing list