You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
jdk/test/java/util/SplittableRandom/SplittableRandomTest.java imtermittently timeout.
When the /dev/random is empty, then this testcase will run timeout
Steps to Reproduce
Steps to reproduce the behavior:
"MainThread" #26 prio=5 os_prio=0 tid=0x0000ffff94402000 nid=0xc7ad8 runnable [0x0000fffe55f3a000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:424)
at sun.security.provider.NativePRNG$RandomIO.implGenerateSeed(NativePRNG.java:441)
- locked <0x000000008274c7e8> (a java.lang.Object)
at sun.security.provider.NativePRNG$RandomIO.access$500(NativePRNG.java:331)
at sun.security.provider.NativePRNG.engineGenerateSeed(NativePRNG.java:226)
at java.security.SecureRandom.generateSeed(SecureRandom.java:533)
at java.security.SecureRandom.getSeed(SecureRandom.java:520)
at java.util.concurrent.ThreadLocalRandom.initialSeed(ThreadLocalRandom.java:141)
at java.util.concurrent.ThreadLocalRandom.<clinit>(ThreadLocalRandom.java:136)
at java.util.concurrent.ForkJoinPool.externalPush(ForkJoinPool.java:2401)
at java.util.concurrent.ForkJoinTask.fork(ForkJoinTask.java:702)
at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:306)
at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:401)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:734)
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159)
at java.util.stream.ForEachOps$ForEachOp$OfDouble.evaluateParallel(ForEachOps.java:230)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.DoublePipeline.forEach(DoublePipeline.java:393)
at java.util.stream.DoublePipeline$Head.forEach(DoublePipeline.java:587)
at SplittableRandomTest.testBoundedDoubles(SplittableRandomTest.java:488)
Expected behavior
JDK version
Execution environment
The text was updated successfully, but these errors were encountered:
Summary: fix jdk/test/java/util/SplittableRandom/SplittableRandomTest.java intermittently fail, use /dev/urandom instead of /dev/random to avoid block for SecureRandom API
Test Plan: CI pipeline
Reviewed-by: lvfei.lv, lei.yul
Issue: #428
Summary: fix jdk/test/java/util/SplittableRandom/SplittableRandomTest.java intermittently fail, use /dev/urandom instead of /dev/random to avoid block for SecureRandom API
Test Plan: CI pipeline
Reviewed-by: lvfei.lv, lei.yul
Issue: #428
Description
jdk/test/java/util/SplittableRandom/SplittableRandomTest.java imtermittently timeout.
When the /dev/random is empty, then this testcase will run timeout
Steps to Reproduce
Steps to reproduce the behavior:
result:
Expected behavior
JDK version
Execution environment
The text was updated successfully, but these errors were encountered: