RFR: 8344942: Template-Based Testing Framework [v16]
Emanuel Peter
epeter at openjdk.org
Wed May 14 14:15:04 UTC 2025
On Wed, 14 May 2025 12:51:44 GMT, Manuel Hässig <mhaessig at openjdk.org> wrote:
>> Emanuel Peter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> more documentation fixes
>
> test/hotspot/jtreg/compiler/lib/template_framework/NameSet.java line 37:
>
>> 35: */
>> 36: class NameSet {
>> 37: static final Random RANDOM = Utils.getRandomInstance();
>
> IIUC, we can generate slightly different programs by sampling variables from name sets. For the purposes of reproducing tests it might be useful to seed the randomness and print the seed.
That is exactly what `Utils.getRandomInstance();` already does! It produces lines like this:
For random generator using seed: 3152575406766939100
To re-run test with same seed value please add "-Djdk.test.lib.random.seed=3152575406766939100" to command line.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24217#discussion_r2089056289
More information about the hotspot-compiler-dev
mailing list