File tree 1 file changed +3
-2
lines changed
test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 38
38
import java .util .List ;
39
39
import java .util .concurrent .TimeUnit ;
40
40
import java .util .function .Predicate ;
41
+ import java .util .Random ;
41
42
import java .util .regex .Pattern ;
42
43
import java .util .stream .Collectors ;
43
44
@@ -266,7 +267,7 @@ private Pair<String, Long> getLastClass(Path errFile) {
266
267
private String [] cmd (long classStart , long classStop ) {
267
268
String phase = phaseName (classStart );
268
269
Path file = Paths .get (phase + ".cmd" );
269
- var rng = Utils .getRandomInstance ();
270
+ Random rng = Utils .getRandomInstance ();
270
271
271
272
ArrayList <String > Args = new ArrayList <String >(Arrays .asList (
272
273
"-Xbatch" ,
@@ -301,7 +302,7 @@ private String[] cmd(long classStart, long classStop) {
301
302
"-XX:+StressMacroExpansion" ,
302
303
"-XX:+StressIncrementalInlining" ,
303
304
// StressSeed is uint
304
- "-XX:StressSeed=" + Math . abs ( rng .nextInt () )));
305
+ "-XX:StressSeed=" + rng .nextInt (Integer . MAX_VALUE )));
305
306
306
307
for (String arg : CTW_EXTRA_ARGS .split ("," )) {
307
308
Args .add (arg );
You can’t perform that action at this time.
0 commit comments