RFR: 8254042: gtest/GTestWrapper.java failed os.test_random

Coleen Phillimore coleenp at openjdk.java.net
Tue Nov 24 23:45:01 UTC 2020


The function os::init_random() and os::random() both set the _rand_seed. This test thinks nothing can change the seed while it is computing its expected value.
I changed the test to run in a VM operation safepoint.  Alternately, I can change the test to not verify the random value computed in the loop, or remove the test.
Ran tier1 tests on linux-x64 and windows-x64.

-------------

Commit messages:
 - 8254042: gtest/GTestWrapper.java failed os.test_random

Changes: https://git.openjdk.java.net/jdk/pull/1422/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1422&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8254042
  Stats: 68 lines in 8 files changed: 23 ins; 17 del; 28 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1422.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1422/head:pull/1422

PR: https://git.openjdk.java.net/jdk/pull/1422


More information about the hotspot-dev mailing list