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

Backport-of: 8c9d091f19
This commit is contained in:
Ravi Reddy
2023-08-10 11:46:41 +00:00
committed by Vitaly Provodin
parent e8ca1144e4
commit 2a592da963
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() {}};