8308047: java/util/concurrent/ScheduledThreadPoolExecutor/BasicCancelTest.java timed out and also had jcmd pipe errors

Reviewed-by: stefank, alanb
This commit is contained in:
Viktor Klang 2023-07-13 14:25:50 +00:00 committed by Roger Riggs
parent b587fc51a8
commit 8c9d091f19
2 changed files with 2 additions and 3 deletions

View File

@ -38,5 +38,4 @@ sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java 8307393 generic-all
sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java 8307393 generic-all
com/sun/jdi/ThreadMemoryLeakTest.java 8307402 generic-all
java/util/concurrent/ScheduledThreadPoolExecutor/BasicCancelTest.java 8308047 windows-x64
java/util/concurrent/locks/Lock/OOMEInAQS.java 8309218 generic-all

View File

@ -24,7 +24,7 @@
/*
* @test
* @bug 6602600
* @run main/othervm -Xmx8m BasicCancelTest
* @run main/othervm -Xmx64m BasicCancelTest
* @summary Check effectiveness of RemoveOnCancelPolicy
*/
@ -76,7 +76,7 @@ public class BasicCancelTest {
// Needed to avoid OOME
pool.setRemoveOnCancelPolicy(true);
final long moreThanYouCanChew = Runtime.getRuntime().freeMemory() / 4;
final long moreThanYouCanChew = Runtime.getRuntime().maxMemory() / 32;
System.out.printf("moreThanYouCanChew=%d%n", moreThanYouCanChew);
Runnable noopTask = new Runnable() { public void run() {}};