RFR: 8370315: [IR-Framework] Allow scenarios to be run in parallel [v4]
Christian Hagedorn
chagedorn at openjdk.org
Wed Dec 17 09:11:43 UTC 2025
On Mon, 15 Dec 2025 12:52:54 GMT, Damon Fenacci <dfenacci at openjdk.org> wrote:
>> test/hotspot/jtreg/compiler/lib/ir_framework/TestFramework.java line 775:
>>
>>> 773: if (!output.isEmpty()) {
>>> 774: System.out.println(output);
>>> 775: }
>>
>> We probably also need to do a similar trick as for the exceptions in order to have ordered stdouts for the scenarios?
>
> I might have spoken too soon: JTReg seems to collect stdout and stderr and print them out at once at the end of each (JTReg) test. In this case it doesn't make much sense to print out the output of each test as soon as it finishes (it would be better to collect them and print them in order at the end). @chhagedorn, is there possibly a way to make JTReg print the output "on-the-fly" that you are aware of?
Yes, I agree. Let's just collect everything, stdout and exceptions, and then print them in scenario index order at the end. That probably also simplifies the logic.
> is there possibly a way to make JTReg print the output "on-the-fly" that you are aware of?
I'm not aware of such an option but thought it would be useful in the past when having a long running test and I'm actually only interested in some printed messages at the very start.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28065#discussion_r2626198846
More information about the hotspot-compiler-dev
mailing list