RFR: 8252219: C2: Randomize IGVN worklist for stress testing
Roberto Castañeda Lozano
github.com+8792647+robcasloz at openjdk.java.net
Tue Sep 22 12:57:42 UTC 2020
On Sun, 20 Sep 2020 17:02:29 GMT, Roberto Castañeda Lozano <github.com+8792647+robcasloz at openjdk.org> wrote:
>> Add 'StressIGVN' option to let C2 randomize IGVN worklist order. When enabled,
>> the worklist is shuffled before each main run of the IGVN loop. Also add
>> 'GenerateStressSeed' and 'StressSeed=N' options to randomly generate or specify
>> the seed. In either case, the seed is logged if 'LogCompilation' is enabled.
>>
>> The generation or specification of seeds also affects the randomization
>> triggered by 'StressLCM' and 'StressGCM'. The new options are declared as
>> production+diagnostic for consistency with these existing options.
>
> Reverted to "draft mode", as I just realized the design is not repeatable since it relies on global PRNG state.
Add 'StressIGVN' option to let C2 randomize IGVN worklist order. When enabled,
the worklist is shuffled before each main run of the IGVN loop. Also add
'GenerateStressSeed' and 'StressSeed=N' options to randomly generate or specify
the seed. In either case, the seed is logged if 'LogCompilation' is enabled.
The new options are declared as production+diagnostic for consistency with the
existing 'StressLCM' and 'StressGCM' options.
-------------
PR: https://git.openjdk.java.net/jdk/pull/242
More information about the hotspot-compiler-dev
mailing list