RFR: 8351345: [IR Framework] Improve reported disabled IR verification messages [v2]

Hamlin Li mli at openjdk.org
Mon Mar 10 18:02:33 UTC 2025


On Mon, 10 Mar 2025 07:51:57 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

>> Hamlin Li has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   refine
>
> test/hotspot/jtreg/compiler/lib/ir_framework/TestFramework.java line 602:
> 
>> 600:         boolean debugTest, irTest, nonWhiteListedTest;
>> 601: 
>> 602:         debugTest = Platform.isDebugBuild() && !Platform.isInt() && !Platform.isComp();
> 
> I suggest to split this up into three separate checks which generate three separate messages.

OK, fixed.

> test/hotspot/jtreg/compiler/lib/ir_framework/TestFramework.java line 615:
> 
>> 613:         System.out.println("IR verification disabled due to:");
>> 614:         if (!debugTest) {
>> 615:             System.out.println("\tnot running a debug build (required for PrintIdeal and PrintOptoAssembly), " +
> 
> I like the improvements so far. But I think we should not use tabs since the size could be specific to the machine we are running on. I suggest to use `-` instead which could use the following structure:
> 
> IR verification disabled due to the following reason(s):
> - Reason 1
> - Reason 2
> ...
> - Using non-whitelisted JTreg VM or Javaoptions flag(s):
>   - Non-whitelisted flag 1
>   - Non-whitelisted flag 2
>   - ...

Make sense to me, fixed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23931#discussion_r1987777527
PR Review Comment: https://git.openjdk.org/jdk/pull/23931#discussion_r1987778100


More information about the hotspot-compiler-dev mailing list