< prev index next >
test/hotspot/jtreg/vmTestbase/gc/hashcode/ExternalHashingTest/ExternalHashingTest.java
Print this page
rev 59093 : [mq]: randomness-code_vmTestbase_gc
*** 56,65 ****
--- 56,67 ----
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import java.util.Vector;
+ import jdk.test.lib.Utils;
+
/**
* Test the possible interaction of external hashing and locking on object
* headers.
*
* The approach is to nearly simultaneously lock/hash a relatively small group
*** 75,85 ****
*/
public final class ExternalHashingTest {
/** Random number generator. */
! static Random rand = new Random();
/** Goes to true when the threads should start working. */
public static volatile boolean startingGun;
/** Goes to true when the hashing thread is done. */
--- 77,87 ----
*/
public final class ExternalHashingTest {
/** Random number generator. */
! static Random rand = Utils.getRandomInstance();
/** Goes to true when the threads should start working. */
public static volatile boolean startingGun;
/** Goes to true when the hashing thread is done. */
< prev index next >