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

Damon Fenacci dfenacci at openjdk.org
Tue Aug 12 15:20:21 UTC 2025


On Mon, 11 Aug 2025 11:13:08 GMT, Saranya Natarajan <snatarajan at openjdk.org> wrote:

>> test/hotspot/jtreg/compiler/arguments/TestBciProfileWidth.java line 28:
>> 
>>> 26:  * @summary Test the range defined in globals.hpp for BciProfileWidth
>>> 27:  * @bug 8358696
>>> 28:  * @run main/othervm -XX:BciProfileWidth=0
>> 
>> `BciProfileWidth` is debug only, right?
>
> Thank you for the review. 
> I have now included `@requires vm.debug`

Shouldn't we check that the vm doesn't crash with `BciProfileWidth=-1` and `BciProfileWidth=100000` (or another very high value)?

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

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


More information about the hotspot-compiler-dev mailing list