RFR: 8325482: Test that distinct seeds produce distinct traces for compiler stress flags [v3]

Saranya Natarajan snatarajan at openjdk.org
Tue Aug 5 08:24:10 UTC 2025


On Tue, 5 Aug 2025 08:07:13 GMT, Damon Fenacci <dfenacci at openjdk.org> wrote:

>> Saranya Natarajan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   addressing review comments on camelCase
>
> test/hotspot/jtreg/compiler/debug/TestStressDistinctSeed.java line 83:
> 
>> 81:         int[] arr1 = new int[n];
>> 82:         for (int i = 0; i < n; i++) {
>> 83:             synchronized (TestStressDistinctSeed.class) {
> 
> Was the synchronisation added to create a more "interesting" trace (the tests seem to be running sequentially anyway)?

Testing the stress options for macro expansion and macro elimination requires at least two macro nodes; otherwise, an empty trace is produced. Synchronisation was added solely to increase the number of macro nodes.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26554#discussion_r2253530430


More information about the hotspot-compiler-dev mailing list