OpenJDK / bsd-port / jdk9 / hotspot
changeset 7756:aa00507a0fad
8069125: compiler/codecache/stress tests timeout in nightlies
Summary: added timeout between one of test threads iterations, adjusted hole test execution time
Reviewed-by: kvn
author | pchistyakov |
---|---|
date | Mon, 26 Jan 2015 19:01:50 +0300 |
parents | bc9c81aaf10b |
children | 99dcf09fe406 |
files | test/compiler/codecache/stress/CodeCacheStressRunner.java test/compiler/codecache/stress/OverloadCompileQueueTest.java |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/test/compiler/codecache/stress/CodeCacheStressRunner.java Mon Jan 26 18:59:09 2015 +0300 +++ b/test/compiler/codecache/stress/CodeCacheStressRunner.java Mon Jan 26 19:01:50 2015 +0300 @@ -36,7 +36,7 @@ try { // adjust timeout and substract vm init and exit time long timeout = Utils.adjustTimeout(Utils.DEFAULT_TEST_TIMEOUT); - timeout *= 0.9; + timeout *= 0.8; new TimeLimitedRunner(timeout, 2.0d, this::test).call(); } catch (Exception e) { throw new Error("Exception occurred during test execution", e);
--- a/test/compiler/codecache/stress/OverloadCompileQueueTest.java Mon Jan 26 18:59:09 2015 +0300 +++ b/test/compiler/codecache/stress/OverloadCompileQueueTest.java Mon Jan 26 19:01:50 2015 +0300 @@ -77,7 +77,7 @@ } public OverloadCompileQueueTest() { - Helper.startInfiniteLoopThread(this::lockUnlock); + Helper.startInfiniteLoopThread(this::lockUnlock, 100L); } @Override @@ -99,8 +99,9 @@ private void lockUnlock() { try { + int sleep = Helper.RNG.nextInt(MAX_SLEEP); Helper.WHITE_BOX.lockCompilation(); - Thread.sleep(Helper.RNG.nextInt(MAX_SLEEP)); + Thread.sleep(sleep); } catch (InterruptedException e) { throw new Error("TESTBUG: lockUnlocker thread was unexpectedly interrupted", e); } finally {