From ac47dbdc341fc46c742ff43111723cbb3564ba7f Mon Sep 17 00:00:00 2001
From: Leo Korinth Currently only applies to JTReg. Currently only applies to JTReg. Currently only applies to JTReg
+-timeoutFactor. Applies to JTReg, GTest and Micro.General keywords (TEST_OPTS)
JOBS
TIMEOUT_FACTOR
-JAVA_OPTIONS
VM_OPTIONS
@@ -443,8 +444,13 @@ JOBS
number of CPU cores/2, but never more than memory size in
GB/2.
The timeout factor (-timeoutFactor
).
Defaults to 4.
+The TIMEOUT_FACTOR
is forwarded to JTReg framework
+itself (-timeoutFactor
). Also, some test cases that
+programmatically wait a certain amount of time will apply this factor.
+If we run in forced compilation mode (-Xcomp
), RunTest.gmk will automatically adjust
+this factor to compensate for the interpreter not being as fast as JITed
+code. Defaults to 1.
Sets the argument -timeoutHandlerTimeout
for JTReg. The
default value is 0. This is only valid if the failure handler is
diff --git a/doc/testing.md b/doc/testing.md
index bb56c05c295b1..4421e9fc3e83b 100644
--- a/doc/testing.md
+++ b/doc/testing.md
@@ -324,7 +324,7 @@ Currently only applies to JTReg.
#### TIMEOUT_FACTOR
-Currently only applies to JTReg.
+Currently only applies to [JTReg -timeoutFactor](#timeout_factor-1).
#### JAVA_OPTIONS
@@ -379,9 +379,12 @@ never more than *memory size in GB/2*.
#### TIMEOUT_FACTOR
-The timeout factor (`-timeoutFactor`).
-
-Defaults to 4.
+The `TIMEOUT_FACTOR` is forwarded to JTReg framework itself
+(`-timeoutFactor`). Also, some test cases that programmatically wait a
+certain amount of time will apply this factor. If we run in
+forced compilation mode (`-Xcomp`), [RunTest.gmk](../make/RunTests.gmk)
+will automatically adjust this factor to compensate for the
+interpreter not being as fast as JITed code. Defaults to 1.
#### FAILURE_HANDLER_TIMEOUT
diff --git a/make/RunTests.gmk b/make/RunTests.gmk
index 60ae1bd4763c7..6daa80757612e 100644
--- a/make/RunTests.gmk
+++ b/make/RunTests.gmk
@@ -936,7 +936,7 @@ define SetupRunJtregTestBody
JTREG_ALL_OPTIONS := $$(JTREG_JAVA_OPTIONS) $$(JTREG_VM_OPTIONS)
JTREG_AUTO_PROBLEM_LISTS :=
- JTREG_AUTO_TIMEOUT_FACTOR := 4
+ JTREG_AUTO_TIMEOUT_FACTOR := 1 # IT MAKES NO SENCE TO CHANGE IT. Fix individual test cases that time out instead.
ifneq ($$(findstring -Xcomp, $$(JTREG_ALL_OPTIONS)), )
JTREG_AUTO_PROBLEM_LISTS += ProblemList-Xcomp.txt
diff --git a/test/hotspot/jtreg/compiler/arraycopy/stress/TestStressArrayCopy.java b/test/hotspot/jtreg/compiler/arraycopy/stress/TestStressArrayCopy.java
index 55dfb0460a2cb..8c410c77e5fc5 100644
--- a/test/hotspot/jtreg/compiler/arraycopy/stress/TestStressArrayCopy.java
+++ b/test/hotspot/jtreg/compiler/arraycopy/stress/TestStressArrayCopy.java
@@ -51,7 +51,7 @@
* jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
*
- * @run main/othervm/timeout=7200
+ * @run main/othervm/timeout=28800
* -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* compiler.arraycopy.stress.TestStressArrayCopy
*/
diff --git a/test/hotspot/jtreg/compiler/c1/TestConcurrentPatching.java b/test/hotspot/jtreg/compiler/c1/TestConcurrentPatching.java
index 6a7179d0ce45f..d695707c7e8a9 100644
--- a/test/hotspot/jtreg/compiler/c1/TestConcurrentPatching.java
+++ b/test/hotspot/jtreg/compiler/c1/TestConcurrentPatching.java
@@ -30,7 +30,7 @@
* @test
* @bug 8340313
* @summary Test that concurrent patching of oop immediates is thread-safe in C1.
- * @run main/othervm/timeout=480 -Xcomp -XX:CompileCommand=compileonly,TestConcurrentPatching::* -XX:TieredStopAtLevel=1 TestConcurrentPatching
+ * @run main/othervm/timeout=1920 -Xcomp -XX:CompileCommand=compileonly,TestConcurrentPatching::* -XX:TieredStopAtLevel=1 TestConcurrentPatching
*/
class MyClass { }
diff --git a/test/hotspot/jtreg/compiler/c1/TestPinnedIntrinsics.java b/test/hotspot/jtreg/compiler/c1/TestPinnedIntrinsics.java
index a1f42a4324082..ca3b3d84a78d2 100644
--- a/test/hotspot/jtreg/compiler/c1/TestPinnedIntrinsics.java
+++ b/test/hotspot/jtreg/compiler/c1/TestPinnedIntrinsics.java
@@ -25,7 +25,7 @@
* @test
* @bug 8184271
* @summary Test correct scheduling of System.nanoTime C1 intrinsic.
- * @run main/othervm -XX:TieredStopAtLevel=1 -Xbatch
+ * @run main/othervm/timeout=480 -XX:TieredStopAtLevel=1 -Xbatch
* -XX:CompileCommand=dontinline,compiler.c1.TestPinnedIntrinsics::checkNanoTime
* compiler.c1.TestPinnedIntrinsics
*/
diff --git a/test/hotspot/jtreg/compiler/c2/TestMergeStores.java b/test/hotspot/jtreg/compiler/c2/TestMergeStores.java
index 22920eda82824..84329c4a9c8a1 100644
--- a/test/hotspot/jtreg/compiler/c2/TestMergeStores.java
+++ b/test/hotspot/jtreg/compiler/c2/TestMergeStores.java
@@ -37,7 +37,7 @@
* @summary Test merging of consecutive stores
* @modules java.base/jdk.internal.misc
* @library /test/lib /
- * @run main compiler.c2.TestMergeStores aligned
+ * @run main/timeout=480 compiler.c2.TestMergeStores aligned
*/
/*
@@ -46,7 +46,7 @@
* @summary Test merging of consecutive stores
* @modules java.base/jdk.internal.misc
* @library /test/lib /
- * @run main compiler.c2.TestMergeStores unaligned
+ * @run main/timeout=480 compiler.c2.TestMergeStores unaligned
*/
/*
@@ -55,7 +55,7 @@
* @summary Test merging of consecutive stores
* @modules java.base/jdk.internal.misc
* @library /test/lib /
- * @run main compiler.c2.TestMergeStores StressIGVN
+ * @run main/timeout=480 compiler.c2.TestMergeStores StressIGVN
*/
public class TestMergeStores {
diff --git a/test/hotspot/jtreg/compiler/c2/TestScalarReplacementMaxLiveNodes.java b/test/hotspot/jtreg/compiler/c2/TestScalarReplacementMaxLiveNodes.java
index 60086dba32713..3084acc94f697 100644
--- a/test/hotspot/jtreg/compiler/c2/TestScalarReplacementMaxLiveNodes.java
+++ b/test/hotspot/jtreg/compiler/c2/TestScalarReplacementMaxLiveNodes.java
@@ -28,8 +28,8 @@
* @library /test/lib /
* @requires vm.debug & vm.compiler2.enabled
* @compile -XDstringConcat=inline TestScalarReplacementMaxLiveNodes.java
- * @run main/othervm compiler.c2.TestScalarReplacementMaxLiveNodes
- * @run main/othervm -Xbatch -XX:-OptimizeStringConcat -XX:-TieredCompilation
+ * @run main/othervm/timeout=480 compiler.c2.TestScalarReplacementMaxLiveNodes
+ * @run main/othervm/timeout=480 -Xbatch -XX:-OptimizeStringConcat -XX:-TieredCompilation
* -XX:+UnlockDiagnosticVMOptions -XX:+ReduceAllocationMerges
* -XX:CompileCommand=dontinline,compiler.c2.TestScalarReplacementMaxLiveNodes::test
* -XX:CompileCommand=compileonly,*TestScalarReplacementMaxLiveNodes*::*test*
diff --git a/test/hotspot/jtreg/compiler/c2/TestStressRecompilation.java b/test/hotspot/jtreg/compiler/c2/TestStressRecompilation.java
index 923323beb75de..7af375e0519c9 100644
--- a/test/hotspot/jtreg/compiler/c2/TestStressRecompilation.java
+++ b/test/hotspot/jtreg/compiler/c2/TestStressRecompilation.java
@@ -26,7 +26,7 @@
* @bug 8245801
* @requires vm.debug
* @summary Test running with StressRecompilation enabled.
- * @run main/othervm -Xcomp -XX:+IgnoreUnrecognizedVMOptions -XX:+StressRecompilation
+ * @run main/othervm/timeout=480 -Xcomp -XX:+IgnoreUnrecognizedVMOptions -XX:+StressRecompilation
* compiler.c2.TestStressRecompilation
*/
diff --git a/test/hotspot/jtreg/compiler/classUnloading/methodUnloading/TestOverloadCompileQueues.java b/test/hotspot/jtreg/compiler/classUnloading/methodUnloading/TestOverloadCompileQueues.java
index 049069540908e..241ed9f17d23b 100644
--- a/test/hotspot/jtreg/compiler/classUnloading/methodUnloading/TestOverloadCompileQueues.java
+++ b/test/hotspot/jtreg/compiler/classUnloading/methodUnloading/TestOverloadCompileQueues.java
@@ -26,9 +26,9 @@
* @bug 8163511 8230402
* @summary Test overloading the C1 and C2 compile queues with tasks.
* @requires !vm.graal.enabled
- * @run main/othervm/timeout=300 -XX:-TieredCompilation -XX:CompileThreshold=2 -XX:CICompilerCount=1
+ * @run main/othervm/timeout=1200 -XX:-TieredCompilation -XX:CompileThreshold=2 -XX:CICompilerCount=1
* compiler.classUnloading.methodUnloading.TestOverloadCompileQueues
- * @run main/othervm/timeout=300 -XX:TieredCompileTaskTimeout=1000 -XX:CompileThresholdScaling=0.001 -XX:CICompilerCount=2
+ * @run main/othervm/timeout=1200 -XX:TieredCompileTaskTimeout=1000 -XX:CompileThresholdScaling=0.001 -XX:CICompilerCount=2
* compiler.classUnloading.methodUnloading.TestOverloadCompileQueues
*/
diff --git a/test/hotspot/jtreg/compiler/codegen/TestAntiDependenciesHighMemUsage2.java b/test/hotspot/jtreg/compiler/codegen/TestAntiDependenciesHighMemUsage2.java
index d5f220f4628db..cfe884c269fa2 100644
--- a/test/hotspot/jtreg/compiler/codegen/TestAntiDependenciesHighMemUsage2.java
+++ b/test/hotspot/jtreg/compiler/codegen/TestAntiDependenciesHighMemUsage2.java
@@ -25,7 +25,7 @@
* @test
* @bug 8333258
* @summary C2: high memory usage in PhaseCFG::raise_above_anti_dependences()
- * @run main/othervm -XX:CompileOnly=TestAntiDependenciesHighMemUsage2::test1 -XX:-ClipInlining
+ * @run main/othervm/timeout=480 -XX:CompileOnly=TestAntiDependenciesHighMemUsage2::test1 -XX:-ClipInlining
* -XX:-BackgroundCompilation -XX:-TieredCompilation -XX:-UseOnStackReplacement TestAntiDependenciesHighMemUsage2
*/
diff --git a/test/hotspot/jtreg/compiler/codegen/aes/TestCipherBlockChainingEncrypt.java b/test/hotspot/jtreg/compiler/codegen/aes/TestCipherBlockChainingEncrypt.java
index 46d09b4242538..1d2a9f9f63eb6 100644
--- a/test/hotspot/jtreg/compiler/codegen/aes/TestCipherBlockChainingEncrypt.java
+++ b/test/hotspot/jtreg/compiler/codegen/aes/TestCipherBlockChainingEncrypt.java
@@ -30,7 +30,7 @@
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
*
- * @run main/othervm -Xbatch
+ * @run main/othervm/timeout=480 -Xbatch
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* compiler.codegen.aes.TestCipherBlockChainingEncrypt
*/
diff --git a/test/hotspot/jtreg/compiler/controldependency/TestLoadBypassesClassCast.java b/test/hotspot/jtreg/compiler/controldependency/TestLoadBypassesClassCast.java
index f5608c3a51a8b..127206f9b0ee2 100644
--- a/test/hotspot/jtreg/compiler/controldependency/TestLoadBypassesClassCast.java
+++ b/test/hotspot/jtreg/compiler/controldependency/TestLoadBypassesClassCast.java
@@ -26,7 +26,7 @@
* @summary C2: Load can bypass subtype check that enforces it's from the right object type
* @requires vm.gc.Parallel
* @requires vm.compiler2.enabled
- * @run main/othervm -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:CompileOnly=TestLoadBypassesClassCast::test
+ * @run main/othervm/timeout=480 -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:CompileOnly=TestLoadBypassesClassCast::test
* -XX:CompileThreshold=20000 -XX:LoopMaxUnroll=1 -XX:-LoopUnswitching -XX:+UseParallelGC TestLoadBypassesClassCast
*
*/
diff --git a/test/hotspot/jtreg/compiler/floatingpoint/TestFloatSyncJNIArgs.java b/test/hotspot/jtreg/compiler/floatingpoint/TestFloatSyncJNIArgs.java
index d969906295238..cd596c337b76f 100644
--- a/test/hotspot/jtreg/compiler/floatingpoint/TestFloatSyncJNIArgs.java
+++ b/test/hotspot/jtreg/compiler/floatingpoint/TestFloatSyncJNIArgs.java
@@ -27,7 +27,7 @@
* @summary Regression test for passing float args to a synchronized jni function.
*
*
- * @run main/othervm/native compiler.floatingpoint.TestFloatSyncJNIArgs
+ * @run main/othervm/native/timeout=480 compiler.floatingpoint.TestFloatSyncJNIArgs
*/
package compiler.floatingpoint;
diff --git a/test/hotspot/jtreg/compiler/intrinsics/TestLongUnsignedDivMod.java b/test/hotspot/jtreg/compiler/intrinsics/TestLongUnsignedDivMod.java
index 88fd46c432500..6c240c7b151a6 100644
--- a/test/hotspot/jtreg/compiler/intrinsics/TestLongUnsignedDivMod.java
+++ b/test/hotspot/jtreg/compiler/intrinsics/TestLongUnsignedDivMod.java
@@ -26,7 +26,7 @@
* @summary Test intrinsic for divideUnsigned() and remainderUnsigned() methods for Long
* @requires os.arch=="amd64" | os.arch=="x86_64" | os.arch=="riscv64" | os.arch=="aarch64"
* @library /test/lib /
-* @run driver compiler.intrinsics.TestLongUnsignedDivMod
+* @run driver/timeout=480 compiler.intrinsics.TestLongUnsignedDivMod
*/
package compiler.intrinsics;
diff --git a/test/hotspot/jtreg/compiler/jsr292/ContinuousCallSiteTargetChange.java b/test/hotspot/jtreg/compiler/jsr292/ContinuousCallSiteTargetChange.java
index 2b501064b76e8..6536a0b956c6e 100644
--- a/test/hotspot/jtreg/compiler/jsr292/ContinuousCallSiteTargetChange.java
+++ b/test/hotspot/jtreg/compiler/jsr292/ContinuousCallSiteTargetChange.java
@@ -28,7 +28,7 @@
*
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run driver/timeout=180 compiler.jsr292.ContinuousCallSiteTargetChange
+ * @run driver/timeout=720 compiler.jsr292.ContinuousCallSiteTargetChange
*/
package compiler.jsr292;
diff --git a/test/hotspot/jtreg/compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java b/test/hotspot/jtreg/compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java
index 93f21164bf573..769863880f234 100644
--- a/test/hotspot/jtreg/compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java
+++ b/test/hotspot/jtreg/compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java
@@ -32,7 +32,7 @@
* jdk.attach
* @requires vm.jvmti
*
- * @run main/othervm -Djdk.attach.allowAttachSelf compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles
+ * @run main/othervm/timeout=480 -Djdk.attach.allowAttachSelf compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles
*/
package compiler.jsr292;
diff --git a/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/RedefineClassTest.java b/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/RedefineClassTest.java
index 6aeaf4eec7e06..b51e7266cdf26 100644
--- a/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/RedefineClassTest.java
+++ b/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/RedefineClassTest.java
@@ -30,7 +30,7 @@
* jdk.internal.vm.ci/jdk.vm.ci.runtime
* jdk.attach
* java.base/jdk.internal.misc
- * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:-UseJVMCICompiler -Djdk.attach.allowAttachSelf jdk.vm.ci.runtime.test.RedefineClassTest
+ * @run junit/othervm/timeout=480 -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:-UseJVMCICompiler -Djdk.attach.allowAttachSelf jdk.vm.ci.runtime.test.RedefineClassTest
*/
package jdk.vm.ci.runtime.test;
diff --git a/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaMethod.java b/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaMethod.java
index 6151ae68ce7ab..64aec90345936 100644
--- a/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaMethod.java
+++ b/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaMethod.java
@@ -40,7 +40,7 @@
* java.base/jdk.internal.misc
* java.base/jdk.internal.vm
* java.base/sun.reflect.annotation
- * @run junit/othervm/timeout=240 -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:-UseJVMCICompiler jdk.vm.ci.runtime.test.TestResolvedJavaMethod
+ * @run junit/othervm/timeout=960 -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:-UseJVMCICompiler jdk.vm.ci.runtime.test.TestResolvedJavaMethod
*/
package jdk.vm.ci.runtime.test;
diff --git a/test/hotspot/jtreg/compiler/loopopts/TestMaxLoopOptsCountReached.java b/test/hotspot/jtreg/compiler/loopopts/TestMaxLoopOptsCountReached.java
index d8a56e1b51b84..b5993e4fa0cc0 100644
--- a/test/hotspot/jtreg/compiler/loopopts/TestMaxLoopOptsCountReached.java
+++ b/test/hotspot/jtreg/compiler/loopopts/TestMaxLoopOptsCountReached.java
@@ -26,7 +26,7 @@
* @bug 8284944
* @requires vm.compiler2.enabled
* @summary triggers the loop optimization phase `LoopOptsCount` many times
- * @run main/othervm -Xcomp -XX:-PartialPeelLoop -XX:CompileCommand=compileonly,TestMaxLoopOptsCountReached::test TestMaxLoopOptsCountReached
+ * @run main/othervm/timeout=480 -Xcomp -XX:-PartialPeelLoop -XX:CompileCommand=compileonly,TestMaxLoopOptsCountReached::test TestMaxLoopOptsCountReached
*/
import java.lang.System.Logger.Level;
diff --git a/test/hotspot/jtreg/compiler/loopopts/TestPartialPeelAtUnsignedTestsNegativeLimit.java b/test/hotspot/jtreg/compiler/loopopts/TestPartialPeelAtUnsignedTestsNegativeLimit.java
index 7809f79ce9d9b..463986ebfc4a7 100644
--- a/test/hotspot/jtreg/compiler/loopopts/TestPartialPeelAtUnsignedTestsNegativeLimit.java
+++ b/test/hotspot/jtreg/compiler/loopopts/TestPartialPeelAtUnsignedTestsNegativeLimit.java
@@ -25,7 +25,7 @@
* @test id=Xbatch
* @bug 8332920
* @summary Tests partial peeling at unsigned tests with limit being negative in exit tests "i >u limit".
- * @run main/othervm -Xbatch -XX:-TieredCompilation
+ * @run main/othervm/timeout=480 -Xbatch -XX:-TieredCompilation
* -XX:CompileOnly=*TestPartialPeel*::original*,*TestPartialPeel*::test*
* compiler.loopopts.TestPartialPeelAtUnsignedTestsNegativeLimit
*/
@@ -34,7 +34,7 @@
* @test id=Xcomp-run-inline
* @bug 8332920
* @summary Tests partial peeling at unsigned tests with limit being negative in exit tests "i >u limit".
- * @run main/othervm -Xcomp -XX:-TieredCompilation
+ * @run main/othervm/timeout=480 -Xcomp -XX:-TieredCompilation
* -XX:CompileOnly=*TestPartialPeel*::original*,*TestPartialPeel*::run*,*TestPartialPeel*::test*
* -XX:CompileCommand=inline,*TestPartialPeelAtUnsignedTestsNegativeLimit::test*
* -XX:CompileCommand=dontinline,*TestPartialPeelAtUnsignedTestsNegativeLimit::check
@@ -45,7 +45,7 @@
* @test id=Xcomp-compile-test
* @bug 8332920
* @summary Tests partial peeling at unsigned tests with limit being negative in exit tests "i >u limit".
- * @run main/othervm -Xcomp -XX:-TieredCompilation -XX:CompileOnly=*TestPartialPeel*::original*,*TestPartialPeel*::test*
+ * @run main/othervm/timeout=480 -Xcomp -XX:-TieredCompilation -XX:CompileOnly=*TestPartialPeel*::original*,*TestPartialPeel*::test*
* compiler.loopopts.TestPartialPeelAtUnsignedTestsNegativeLimit
*/
@@ -55,7 +55,7 @@
* @requires vm.flavor == "server" & (vm.opt.TieredStopAtLevel == null | vm.opt.TieredStopAtLevel == 4)
* @summary Tests partial peeling at unsigned tests with limit being negative in exit tests "i >u limit".
* Only run this test with C2 since it is time-consuming and only tests a C2 issue.
- * @run main compiler.loopopts.TestPartialPeelAtUnsignedTestsNegativeLimit
+ * @run main/timeout=480 compiler.loopopts.TestPartialPeelAtUnsignedTestsNegativeLimit
*/
package compiler.loopopts;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Double.java b/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Double.java
index 41284c0d61e0d..ae0988371d3cc 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Double.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Double.java
@@ -26,7 +26,7 @@
* @bug 8074981
* @summary Add C2 x86 Superword support for scalar product reduction optimizations : float test
* @library /test/lib /
- * @run driver compiler.loopopts.superword.ProdRed_Double
+ * @run driver/timeout=480 compiler.loopopts.superword.ProdRed_Double
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Float.java b/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Float.java
index 603530f7fb2e6..5ef236a0342e6 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Float.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Float.java
@@ -26,7 +26,7 @@
* @bug 8074981
* @summary Add C2 x86 Superword support for scalar product reduction optimizations : float test
* @library /test/lib /
- * @run driver compiler.loopopts.superword.ProdRed_Float
+ * @run driver/timeout=480 compiler.loopopts.superword.ProdRed_Float
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Int.java b/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Int.java
index 9ca670117cf89..433a4b6f3a37b 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Int.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/ProdRed_Int.java
@@ -26,7 +26,7 @@
* @bug 8074981
* @summary Add C2 x86 Superword support for scalar product reduction optimizations : int test
* @library /test/lib /
- * @run driver compiler.loopopts.superword.ProdRed_Int
+ * @run driver/timeout=480 compiler.loopopts.superword.ProdRed_Int
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/SumRedAbsNeg_Double.java b/test/hotspot/jtreg/compiler/loopopts/superword/SumRedAbsNeg_Double.java
index 0122f1c34cd61..84f4a3aef53e2 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/SumRedAbsNeg_Double.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/SumRedAbsNeg_Double.java
@@ -26,7 +26,7 @@
* @bug 8138583
* @summary Add C2 AArch64 Superword support for scalar sum reduction optimizations : double abs & neg test
* @library /test/lib /
- * @run driver compiler.loopopts.superword.SumRedAbsNeg_Double
+ * @run driver/timeout=480 compiler.loopopts.superword.SumRedAbsNeg_Double
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/SumRedAbsNeg_Float.java b/test/hotspot/jtreg/compiler/loopopts/superword/SumRedAbsNeg_Float.java
index 6e2d304c1496c..3ada72c402b1d 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/SumRedAbsNeg_Float.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/SumRedAbsNeg_Float.java
@@ -26,7 +26,7 @@
* @bug 8138583
* @summary Add C2 AArch64 Superword support for scalar sum reduction optimizations : float abs & neg test
* @library /test/lib /
- * @run driver compiler.loopopts.superword.SumRedAbsNeg_Float
+ * @run driver/timeout=480 compiler.loopopts.superword.SumRedAbsNeg_Float
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/SumRedSqrt_Double.java b/test/hotspot/jtreg/compiler/loopopts/superword/SumRedSqrt_Double.java
index 2965af2a63bf3..ab99fd4adef77 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/SumRedSqrt_Double.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/SumRedSqrt_Double.java
@@ -26,7 +26,7 @@
* @bug 8135028
* @summary Add C2 x86 Superword support for scalar sum reduction optimizations : double sqrt test
* @library /test/lib /
- * @run driver compiler.loopopts.superword.SumRedSqrt_Double
+ * @run driver/timeout=480 compiler.loopopts.superword.SumRedSqrt_Double
*/
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Double.java b/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Double.java
index 0b81ae59bf0e0..89a396f43afec 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Double.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Double.java
@@ -26,7 +26,7 @@
* @bug 8074981
* @summary Add C2 x86 Superword support for scalar sum reduction optimizations : double test
* @library /test/lib /
- * @run driver compiler.loopopts.superword.SumRed_Double
+ * @run driver/timeout=480 compiler.loopopts.superword.SumRed_Double
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Float.java b/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Float.java
index f667f2d05c19e..db3ccf1a0b29c 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Float.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Float.java
@@ -26,7 +26,7 @@
* @bug 8074981
* @summary Add C2 x86 Superword support for scalar sum reduction optimizations : float test
* @library /test/lib /
- * @run driver compiler.loopopts.superword.SumRed_Float
+ * @run driver/timeout=480 compiler.loopopts.superword.SumRed_Float
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Int.java b/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Int.java
index 098dc2a7d1ea1..8c7e69247c5bc 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Int.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/SumRed_Int.java
@@ -26,7 +26,7 @@
* @bug 8074981
* @summary Add C2 x86 Superword support for scalar sum reduction optimizations : int test
* @library /test/lib /
- * @run driver compiler.loopopts.superword.SumRed_Int
+ * @run driver/timeout=480 compiler.loopopts.superword.SumRed_Int
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/TestDependencyOffsets.java b/test/hotspot/jtreg/compiler/loopopts/superword/TestDependencyOffsets.java
index 24a8581434f68..0426e28f0153a 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/TestDependencyOffsets.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/TestDependencyOffsets.java
@@ -27,7 +27,7 @@
* @summary Test SuperWord: vector size, offsets, dependencies, alignment.
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vanilla-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vanilla-A
*/
/*
@@ -36,7 +36,7 @@
* @summary Test SuperWord: vector size, offsets, dependencies, alignment.
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vanilla-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vanilla-U
*/
/*
@@ -48,7 +48,7 @@
* @requires vm.cpu.features ~= ".*sse4.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets sse4-v016-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets sse4-v016-A
*/
/*
@@ -60,7 +60,7 @@
* @requires vm.cpu.features ~= ".*sse4.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets sse4-v016-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets sse4-v016-U
*/
/*
@@ -72,7 +72,7 @@
* @requires vm.cpu.features ~= ".*sse4.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets sse4-v008-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets sse4-v008-A
*/
/*
@@ -84,7 +84,7 @@
* @requires vm.cpu.features ~= ".*sse4.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets sse4-v008-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets sse4-v008-U
*/
/*
@@ -96,7 +96,7 @@
* @requires vm.cpu.features ~= ".*sse4.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets sse4-v004-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets sse4-v004-A
*/
/*
@@ -108,7 +108,7 @@
* @requires vm.cpu.features ~= ".*sse4.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets sse4-v004-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets sse4-v004-U
*/
/*
@@ -120,7 +120,7 @@
* @requires vm.cpu.features ~= ".*avx.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx1-v032-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx1-v032-A
*/
/*
@@ -132,7 +132,7 @@
* @requires vm.cpu.features ~= ".*avx.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx1-v032-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx1-v032-U
*/
/*
@@ -144,7 +144,7 @@
* @requires vm.cpu.features ~= ".*avx.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx1-v016-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx1-v016-A
*/
/*
@@ -156,7 +156,7 @@
* @requires vm.cpu.features ~= ".*avx.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx1-v016-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx1-v016-U
*/
/*
@@ -168,7 +168,7 @@
* @requires vm.cpu.features ~= ".*avx2.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx2-v032-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx2-v032-A
*/
/*
@@ -180,7 +180,7 @@
* @requires vm.cpu.features ~= ".*avx2.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx2-v032-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx2-v032-U
*/
/*
@@ -192,7 +192,7 @@
* @requires vm.cpu.features ~= ".*avx2.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx2-v016-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx2-v016-A
*/
/*
@@ -204,7 +204,7 @@
* @requires vm.cpu.features ~= ".*avx2.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx2-v016-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx2-v016-U
*/
/*
@@ -216,7 +216,7 @@
* @requires vm.cpu.features ~= ".*avx512.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx512-v064-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx512-v064-A
*/
/*
@@ -228,7 +228,7 @@
* @requires vm.cpu.features ~= ".*avx512.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx512-v064-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx512-v064-U
*/
/*
@@ -240,7 +240,7 @@
* @requires vm.cpu.features ~= ".*avx512.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx512-v032-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx512-v032-A
*/
/*
@@ -252,7 +252,7 @@
* @requires vm.cpu.features ~= ".*avx512.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx512-v032-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx512-v032-U
*/
/*
@@ -264,7 +264,7 @@
* @requires vm.cpu.features ~= ".*avx512bw.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx512bw-v064-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx512bw-v064-A
*/
/*
@@ -276,7 +276,7 @@
* @requires vm.cpu.features ~= ".*avx512bw.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx512bw-v064-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx512bw-v064-U
*/
/*
@@ -288,7 +288,7 @@
* @requires vm.cpu.features ~= ".*avx512bw.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx512bw-v032-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx512bw-v032-A
*/
/*
@@ -300,7 +300,7 @@
* @requires vm.cpu.features ~= ".*avx512bw.*"
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets avx512bw-v032-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets avx512bw-v032-U
*/
/*
@@ -311,7 +311,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v064-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v064-A
*/
/*
@@ -322,7 +322,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v064-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v064-U
*/
/*
@@ -333,7 +333,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v032-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v032-A
*/
/*
@@ -344,7 +344,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v032-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v032-U
*/
/*
@@ -355,7 +355,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v016-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v016-A
*/
/*
@@ -366,7 +366,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v016-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v016-U
*/
/*
@@ -377,7 +377,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v008-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v008-A
*/
/*
@@ -388,7 +388,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v008-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v008-U
*/
/*
@@ -399,7 +399,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v004-A
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v004-A
*/
/*
@@ -410,7 +410,7 @@
* @requires (os.arch!="x86" & os.arch!="i386" & os.arch!="amd64" & os.arch!="x86_64")
* @library /test/lib /
* @compile ../../lib/ir_framework/TestFramework.java
- * @run driver compiler.loopopts.superword.TestDependencyOffsets vec-v004-U
+ * @run driver/timeout=480 compiler.loopopts.superword.TestDependencyOffsets vec-v004-U
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/TestEquivalentInvariants.java b/test/hotspot/jtreg/compiler/loopopts/superword/TestEquivalentInvariants.java
index 7cec26d653227..91d1ee9666a85 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/TestEquivalentInvariants.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/TestEquivalentInvariants.java
@@ -39,7 +39,7 @@
* i.e. where the invariants have the same summands, but in a different order.
* @modules java.base/jdk.internal.misc
* @library /test/lib /
- * @run driver/timeout=1200 compiler.loopopts.superword.TestEquivalentInvariants
+ * @run driver/timeout=4800 compiler.loopopts.superword.TestEquivalentInvariants
*/
public class TestEquivalentInvariants {
diff --git a/test/hotspot/jtreg/compiler/loopopts/superword/TestMovingLoadBeforeStore.java b/test/hotspot/jtreg/compiler/loopopts/superword/TestMovingLoadBeforeStore.java
index 72ca2cee3414b..18fb0019fa5b2 100644
--- a/test/hotspot/jtreg/compiler/loopopts/superword/TestMovingLoadBeforeStore.java
+++ b/test/hotspot/jtreg/compiler/loopopts/superword/TestMovingLoadBeforeStore.java
@@ -29,12 +29,13 @@
* @key randomness
* @modules java.base/jdk.internal.misc
* @library /test/lib
- * @run main/othervm -XX:CompileCommand=compileonly,compiler.loopopts.superword.TestMovingLoadBeforeStore::test*
- * --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
- * -Xbatch
- * -XX:+UnlockDiagnosticVMOptions -XX:+StressLCM
- * -XX:+IgnoreUnrecognizedVMOptions -XX:LoopUnrollLimit=100
- * compiler.loopopts.superword.TestMovingLoadBeforeStore
+ * @run main/othervm/timeout=480
+ * -XX:CompileCommand=compileonly,compiler.loopopts.superword.TestMovingLoadBeforeStore::test*
+ * --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
+ * -Xbatch
+ * -XX:+UnlockDiagnosticVMOptions -XX:+StressLCM
+ * -XX:+IgnoreUnrecognizedVMOptions -XX:LoopUnrollLimit=100
+ * compiler.loopopts.superword.TestMovingLoadBeforeStore
*/
package compiler.loopopts.superword;
diff --git a/test/hotspot/jtreg/compiler/loopstripmining/CheckLoopStripMining.java b/test/hotspot/jtreg/compiler/loopstripmining/CheckLoopStripMining.java
index 9e8ac6b013a06..cdbf5affd01ca 100644
--- a/test/hotspot/jtreg/compiler/loopstripmining/CheckLoopStripMining.java
+++ b/test/hotspot/jtreg/compiler/loopstripmining/CheckLoopStripMining.java
@@ -28,7 +28,7 @@
* @requires vm.compiler2.enabled
*
* @library /test/lib
- * @run driver compiler.loopstripmining.CheckLoopStripMining
+ * @run driver/timeout=480 compiler.loopstripmining.CheckLoopStripMining
*/
package compiler.loopstripmining;
diff --git a/test/hotspot/jtreg/compiler/profiling/TestProfileCounterOverflow.java b/test/hotspot/jtreg/compiler/profiling/TestProfileCounterOverflow.java
index b4c4d2d4a4ae6..051f98e8ed0dc 100644
--- a/test/hotspot/jtreg/compiler/profiling/TestProfileCounterOverflow.java
+++ b/test/hotspot/jtreg/compiler/profiling/TestProfileCounterOverflow.java
@@ -27,7 +27,7 @@
* @bug 8224162
* @summary Profile counter for a call site may overflow.
* @requires vm.compMode != "Xcomp"
- * @run main/othervm -Xbatch -XX:-UseOnStackReplacement -XX:+IgnoreUnrecognizedVMOptions -XX:MaxTrivialSize=0 -XX:C1MaxTrivialSize=0 compiler.profiling.TestProfileCounterOverflow
+ * @run main/othervm/timeout=480 -Xbatch -XX:-UseOnStackReplacement -XX:+IgnoreUnrecognizedVMOptions -XX:MaxTrivialSize=0 -XX:C1MaxTrivialSize=0 compiler.profiling.TestProfileCounterOverflow
*/
package compiler.profiling;
diff --git a/test/hotspot/jtreg/compiler/profiling/spectrapredefineclass/Launcher.java b/test/hotspot/jtreg/compiler/profiling/spectrapredefineclass/Launcher.java
index bdf4b3fb85249..79493d6fc6308 100644
--- a/test/hotspot/jtreg/compiler/profiling/spectrapredefineclass/Launcher.java
+++ b/test/hotspot/jtreg/compiler/profiling/spectrapredefineclass/Launcher.java
@@ -32,10 +32,10 @@
* @build compiler.profiling.spectrapredefineclass.Agent
* @run driver jdk.test.lib.helpers.ClassFileInstaller compiler.profiling.spectrapredefineclass.Agent
* @run driver compiler.profiling.spectrapredefineclass.Launcher
- * @run main/othervm -XX:CompilationMode=high-only -XX:-BackgroundCompilation -XX:CompileThreshold=10000
- * -XX:-UseOnStackReplacement -XX:TypeProfileLevel=222
- * -XX:ReservedCodeCacheSize=3M -Djdk.attach.allowAttachSelf
- * compiler.profiling.spectrapredefineclass.Agent
+ * @run main/othervm/timeout=480 -XX:CompilationMode=high-only -XX:-BackgroundCompilation -XX:CompileThreshold=10000
+ * -XX:-UseOnStackReplacement -XX:TypeProfileLevel=222
+ * -XX:ReservedCodeCacheSize=3M -Djdk.attach.allowAttachSelf
+ * compiler.profiling.spectrapredefineclass.Agent
*/
package compiler.profiling.spectrapredefineclass;
diff --git a/test/hotspot/jtreg/compiler/profiling/spectrapredefineclass_classloaders/Launcher.java b/test/hotspot/jtreg/compiler/profiling/spectrapredefineclass_classloaders/Launcher.java
index 6fdbca00523fc..e883718b94ae3 100644
--- a/test/hotspot/jtreg/compiler/profiling/spectrapredefineclass_classloaders/Launcher.java
+++ b/test/hotspot/jtreg/compiler/profiling/spectrapredefineclass_classloaders/Launcher.java
@@ -35,10 +35,10 @@
* compiler.profiling.spectrapredefineclass_classloaders.B
* @run driver jdk.test.lib.helpers.ClassFileInstaller compiler.profiling.spectrapredefineclass_classloaders.Agent
* @run driver compiler.profiling.spectrapredefineclass_classloaders.Launcher
- * @run main/othervm -XX:CompilationMode=high-only -XX:-BackgroundCompilation -XX:CompileThreshold=10000
- * -XX:-UseOnStackReplacement -XX:TypeProfileLevel=222
- * -XX:ReservedCodeCacheSize=3M -Djdk.attach.allowAttachSelf
- * compiler.profiling.spectrapredefineclass_classloaders.Agent
+ * @run main/othervm/timeout=480 -XX:CompilationMode=high-only -XX:-BackgroundCompilation -XX:CompileThreshold=10000
+ * -XX:-UseOnStackReplacement -XX:TypeProfileLevel=222
+ * -XX:ReservedCodeCacheSize=3M -Djdk.attach.allowAttachSelf
+ * compiler.profiling.spectrapredefineclass_classloaders.Agent
*/
package compiler.profiling.spectrapredefineclass_classloaders;
diff --git a/test/hotspot/jtreg/compiler/tiered/Level2RecompilationTest.java b/test/hotspot/jtreg/compiler/tiered/Level2RecompilationTest.java
index 9cdba8c7bea0f..5268724225512 100644
--- a/test/hotspot/jtreg/compiler/tiered/Level2RecompilationTest.java
+++ b/test/hotspot/jtreg/compiler/tiered/Level2RecompilationTest.java
@@ -33,7 +33,7 @@
*
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm -Xbootclasspath/a:. -XX:+TieredCompilation
+ * @run main/othervm/timeout=960 -Xbootclasspath/a:. -XX:+TieredCompilation
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCaseHelper::*
* -XX:CompileCommand=print,compiler.whitebox.SimpleTestCaseHelper::*
@@ -101,4 +101,3 @@ protected void checkLevel(int expected, int actual) {
super.checkLevel(expected, actual);
}
}
-
diff --git a/test/hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java b/test/hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java
index 3dc9df2d73e60..701e04449fd23 100644
--- a/test/hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java
+++ b/test/hotspot/jtreg/compiler/uncommontrap/TestDeoptOOM.java
@@ -27,7 +27,7 @@
* @summary failed reallocations of scalar replaced objects during deoptimization causes crash
*
* @requires !vm.graal.enabled
- * @run main/othervm -XX:-BackgroundCompilation -Xmx128M -XX:+IgnoreUnrecognizedVMOptions -XX:+VerifyStack
+ * @run main/othervm/timeout=480 -XX:-BackgroundCompilation -Xmx128M -XX:+IgnoreUnrecognizedVMOptions -XX:+VerifyStack
* -XX:CompileCommand=exclude,compiler.uncommontrap.TestDeoptOOM::main
* -XX:CompileCommand=exclude,compiler.uncommontrap.TestDeoptOOM::m9_1
* compiler.uncommontrap.TestDeoptOOM
@@ -38,7 +38,7 @@
* @bug 8273456
* @summary Test that ttyLock is ranked above StackWatermark_lock
* @requires !vm.graal.enabled & vm.gc.Z
- * @run main/othervm -XX:-BackgroundCompilation -Xmx128M -XX:+IgnoreUnrecognizedVMOptions -XX:+VerifyStack
+ * @run main/othervm/timeout=480 -XX:-BackgroundCompilation -Xmx128M -XX:+IgnoreUnrecognizedVMOptions -XX:+VerifyStack
* -XX:CompileCommand=exclude,compiler.uncommontrap.TestDeoptOOM::main
* -XX:CompileCommand=exclude,compiler.uncommontrap.TestDeoptOOM::m9_1
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/compiler/vectorapi/TestRawOopAtSafepoint.java b/test/hotspot/jtreg/compiler/vectorapi/TestRawOopAtSafepoint.java
index 7af6296d16b79..523591cced593 100644
--- a/test/hotspot/jtreg/compiler/vectorapi/TestRawOopAtSafepoint.java
+++ b/test/hotspot/jtreg/compiler/vectorapi/TestRawOopAtSafepoint.java
@@ -32,7 +32,8 @@
* @summary Verify that CheckCastPPs with raw oop inputs are not floating below a safepoint.
* @library /test/lib
* @modules jdk.incubator.vector
- * @run main/othervm -XX:-TieredCompilation -Xbatch
+ * @run main/othervm/timeout=480
+ * -XX:-TieredCompilation -Xbatch
* -XX:CompileCommand=compileonly,compiler.vectorapi.TestRawOopAtSafepoint::test*
* -XX:CompileCommand=dontinline,compiler.vectorapi.TestRawOopAtSafepoint::safepoint
* compiler.vectorapi.TestRawOopAtSafepoint
diff --git a/test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java b/test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java
index 9c342574632cf..f3c27c4d278a5 100644
--- a/test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java
+++ b/test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorOperations.java
@@ -29,7 +29,7 @@
* @modules jdk.incubator.vector
* @library /test/lib /
* @compile TestFloat16VectorOperations.java
-* @run driver compiler.vectorization.TestFloat16VectorOperations
+* @run driver/timeout=480 compiler.vectorization.TestFloat16VectorOperations
*/
package compiler.vectorization;
diff --git a/test/hotspot/jtreg/compiler/vectorization/TestVectorZeroCount.java b/test/hotspot/jtreg/compiler/vectorization/TestVectorZeroCount.java
index f4c8845b85703..c30a28c46f9da 100644
--- a/test/hotspot/jtreg/compiler/vectorization/TestVectorZeroCount.java
+++ b/test/hotspot/jtreg/compiler/vectorization/TestVectorZeroCount.java
@@ -26,7 +26,7 @@
* @requires vm.flavor == "server" & (vm.opt.TieredStopAtLevel == null | vm.opt.TieredStopAtLevel == 4)
* @summary Ensure that vectorization of numberOfLeadingZeros and numberOfTrailingZeros outputs correct values
* @library /test/lib /
- * @run main/othervm compiler.vectorization.TestVectorZeroCount
+ * @run main/othervm/timeout=480 compiler.vectorization.TestVectorZeroCount
*/
package compiler.vectorization;
diff --git a/test/hotspot/jtreg/gc/g1/TestGreyReclaimedHumongousObjects.java b/test/hotspot/jtreg/gc/g1/TestGreyReclaimedHumongousObjects.java
index 0ee8cfdbaa4af..993af1ca61d94 100644
--- a/test/hotspot/jtreg/gc/g1/TestGreyReclaimedHumongousObjects.java
+++ b/test/hotspot/jtreg/gc/g1/TestGreyReclaimedHumongousObjects.java
@@ -29,7 +29,7 @@
* @requires vm.gc.G1
* @summary Test handling of marked but unscanned reclaimed humongous objects.
* @modules jdk.management
- * @run main/othervm -XX:+UseG1GC -Xss32m -Xmx128m -XX:G1HeapRegionSize=1m
+ * @run main/othervm/timeout=480 -XX:+UseG1GC -Xss32m -Xmx128m -XX:G1HeapRegionSize=1m
* gc.g1.TestGreyReclaimedHumongousObjects 1048576 90
*/
diff --git a/test/hotspot/jtreg/gc/g1/humongousObjects/TestHumongousClassLoader.java b/test/hotspot/jtreg/gc/g1/humongousObjects/TestHumongousClassLoader.java
index 813b002a8ea97..2d83c59ae2a84 100644
--- a/test/hotspot/jtreg/gc/g1/humongousObjects/TestHumongousClassLoader.java
+++ b/test/hotspot/jtreg/gc/g1/humongousObjects/TestHumongousClassLoader.java
@@ -48,20 +48,20 @@
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
*
- * @run main/othervm/timeout=240 -Xms256M -Xmx256M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
+ * @run main/othervm/timeout=960 -Xms256M -Xmx256M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* gc.g1.humongousObjects.ClassLoaderGenerator 1
*
- * @run main/othervm -Xms256M -Xmx256M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
+ * @run main/othervm/timeout=480 -Xms256M -Xmx256M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* -Xlog:class+load,class+unload=debug:file=TestHumongousClassLoader_Full_GC.log
* -XX:G1HeapRegionSize=1M
* gc.g1.humongousObjects.TestHumongousClassLoader FULL_GC
*
- * @run main/othervm -Xms256M -Xmx256M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
+ * @run main/othervm/timeout=480 -Xms256M -Xmx256M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* -Xlog:class+load,class+unload=debug:file=TestHumongousClassLoader_Full_GC_Mem_Pressure.log
* -XX:G1HeapRegionSize=1M
* gc.g1.humongousObjects.TestHumongousClassLoader FULL_GC_MEMORY_PRESSURE
*
- *@run main/othervm -Xms256M -Xmx256M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
+ *@run main/othervm/timeout=480 -Xms256M -Xmx256M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* -Xlog:class+load,class+unload=debug:file=TestHumongousClassLoader_CMC.log
* -XX:G1HeapRegionSize=1M -XX:MaxTenuringThreshold=1
* gc.g1.humongousObjects.TestHumongousClassLoader CMC
diff --git a/test/hotspot/jtreg/gc/g1/humongousObjects/TestHumongousNonArrayAllocation.java b/test/hotspot/jtreg/gc/g1/humongousObjects/TestHumongousNonArrayAllocation.java
index c9bc1e0f14ed8..4af6ca9a3e275 100644
--- a/test/hotspot/jtreg/gc/g1/humongousObjects/TestHumongousNonArrayAllocation.java
+++ b/test/hotspot/jtreg/gc/g1/humongousObjects/TestHumongousNonArrayAllocation.java
@@ -44,23 +44,23 @@
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
*
- * @run main/othervm -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
+ * @run main/othervm/timeout=480 -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* -XX:G1HeapRegionSize=1M
* gc.g1.humongousObjects.TestHumongousNonArrayAllocation LARGEST_NON_HUMONGOUS
*
- * @run main/othervm -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
+ * @run main/othervm/timeout=480 -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* -XX:G1HeapRegionSize=1M
* gc.g1.humongousObjects.TestHumongousNonArrayAllocation SMALLEST_HUMONGOUS
*
- * @run main/othervm -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
+ * @run main/othervm/timeout=480 -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* -XX:G1HeapRegionSize=1M
* gc.g1.humongousObjects.TestHumongousNonArrayAllocation ONE_REGION_HUMONGOUS
*
- * @run main/othervm -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
+ * @run main/othervm/timeout=480 -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* -XX:G1HeapRegionSize=1M
* gc.g1.humongousObjects.TestHumongousNonArrayAllocation TWO_REGION_HUMONGOUS
*
- * @run main/othervm -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
+ * @run main/othervm/timeout=480 -Xms128M -Xmx128M -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
* -XX:G1HeapRegionSize=1M
* gc.g1.humongousObjects.TestHumongousNonArrayAllocation MORE_THAN_TWO_REGION_HUMONGOUS
*
diff --git a/test/hotspot/jtreg/gc/g1/ihop/TestIHOPErgo.java b/test/hotspot/jtreg/gc/g1/ihop/TestIHOPErgo.java
index b0adb1d489fe5..ad4b109f04bf0 100644
--- a/test/hotspot/jtreg/gc/g1/ihop/TestIHOPErgo.java
+++ b/test/hotspot/jtreg/gc/g1/ihop/TestIHOPErgo.java
@@ -34,7 +34,7 @@
* @library /test/lib /
* @modules java.base/jdk.internal.misc
* @modules java.management
- * @run driver/timeout=480 gc.g1.ihop.TestIHOPErgo
+ * @run driver/timeout=1920 gc.g1.ihop.TestIHOPErgo
*/
package gc.g1.ihop;
diff --git a/test/hotspot/jtreg/gc/stress/TestMultiThreadStressRSet.java b/test/hotspot/jtreg/gc/stress/TestMultiThreadStressRSet.java
index 0c742b7b4ef01..bf7769a780ecb 100644
--- a/test/hotspot/jtreg/gc/stress/TestMultiThreadStressRSet.java
+++ b/test/hotspot/jtreg/gc/stress/TestMultiThreadStressRSet.java
@@ -51,7 +51,7 @@
* -XX:+UseG1GC -XX:G1SummarizeRSetStatsPeriod=100 -Xlog:gc
* -Xmx1G -XX:G1HeapRegionSize=8m -XX:MaxGCPauseMillis=1000 gc.stress.TestMultiThreadStressRSet 60 16
*
- * @run main/othervm/timeout=700 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
+ * @run main/othervm/timeout=1200 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+UseG1GC -XX:G1SummarizeRSetStatsPeriod=100 -Xlog:gc
* -Xmx500m -XX:G1HeapRegionSize=1m -XX:MaxGCPauseMillis=1000 gc.stress.TestMultiThreadStressRSet 600 32
*/
diff --git a/test/hotspot/jtreg/gc/stress/TestReclaimStringsLeaksMemory.java b/test/hotspot/jtreg/gc/stress/TestReclaimStringsLeaksMemory.java
index 645583ec450c3..cc81dd3e286c5 100644
--- a/test/hotspot/jtreg/gc/stress/TestReclaimStringsLeaksMemory.java
+++ b/test/hotspot/jtreg/gc/stress/TestReclaimStringsLeaksMemory.java
@@ -31,10 +31,10 @@
* @requires !vm.debug
* @library /test/lib
* @modules java.base/jdk.internal.misc
- * @run driver gc.stress.TestReclaimStringsLeaksMemory
- * @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseSerialGC
- * @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC
- * @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseG1GC
+ * @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory
+ * @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseSerialGC
+ * @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC
+ * @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseG1GC
*/
import java.util.Arrays;
diff --git a/test/hotspot/jtreg/gc/stress/TestStressG1Humongous.java b/test/hotspot/jtreg/gc/stress/TestStressG1Humongous.java
index 9f3c4286c0f07..06ae99a1df75b 100644
--- a/test/hotspot/jtreg/gc/stress/TestStressG1Humongous.java
+++ b/test/hotspot/jtreg/gc/stress/TestStressG1Humongous.java
@@ -31,7 +31,7 @@
* @requires !vm.flightRecorder
* @library /test/lib
* @modules java.base/jdk.internal.misc
- * @run driver/timeout=180 gc.stress.TestStressG1Humongous 4 3 1.1 120
+ * @run driver/timeout=240 gc.stress.TestStressG1Humongous 4 3 1.1 120
*/
/*
@@ -40,7 +40,7 @@
* @requires !vm.flightRecorder
* @library /test/lib
* @modules java.base/jdk.internal.misc
- * @run driver/timeout=180 gc.stress.TestStressG1Humongous 16 5 2.1 120
+ * @run driver/timeout=240 gc.stress.TestStressG1Humongous 16 5 2.1 120
*/
/*
@@ -49,7 +49,7 @@
* @requires !vm.flightRecorder
* @library /test/lib
* @modules java.base/jdk.internal.misc
- * @run driver/timeout=180 gc.stress.TestStressG1Humongous 32 4 0.6 120
+ * @run driver/timeout=240 gc.stress.TestStressG1Humongous 32 4 0.6 120
*/
/*
@@ -58,7 +58,7 @@
* @requires !vm.flightRecorder
* @library /test/lib
* @modules java.base/jdk.internal.misc
- * @run driver/timeout=900 gc.stress.TestStressG1Humongous 1 7 0.6 600
+ * @run driver/timeout=1200 gc.stress.TestStressG1Humongous 1 7 0.6 600
*/
import java.util.ArrayList;
diff --git a/test/hotspot/jtreg/gc/stress/TestStressRSetCoarsening.java b/test/hotspot/jtreg/gc/stress/TestStressRSetCoarsening.java
index f7b6c77fdf3a0..b6140aa3165bb 100644
--- a/test/hotspot/jtreg/gc/stress/TestStressRSetCoarsening.java
+++ b/test/hotspot/jtreg/gc/stress/TestStressRSetCoarsening.java
@@ -38,7 +38,7 @@
* @library /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm/timeout=300
+ * @run main/othervm/timeout=1200
* -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
* -Xmx500m -XX:G1HeapRegionSize=1m gc.stress.TestStressRSetCoarsening 1 0 300
@@ -53,7 +53,7 @@
* @library /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm/timeout=300
+ * @run main/othervm/timeout=1200
* -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
* -Xmx500m -XX:G1HeapRegionSize=8m gc.stress.TestStressRSetCoarsening 1 10 300
@@ -68,7 +68,7 @@
* @library /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm/timeout=300
+ * @run main/othervm/timeout=1200
* -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
* -Xmx500m -XX:G1HeapRegionSize=32m gc.stress.TestStressRSetCoarsening 42 10 300
@@ -83,7 +83,7 @@
* @library /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm/timeout=300
+ * @run main/othervm/timeout=1200
* -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
* -Xmx500m -XX:G1HeapRegionSize=1m gc.stress.TestStressRSetCoarsening 2 0 300
@@ -98,7 +98,7 @@
* @library /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm/timeout=1800
+ * @run main/othervm/timeout=7200
* -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
* -Xmx1G -XX:G1HeapRegionSize=1m gc.stress.TestStressRSetCoarsening 500 0 1800
@@ -113,7 +113,7 @@
* @library /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm/timeout=1800
+ * @run main/othervm/timeout=7200
* -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
* -Xmx1G -XX:G1HeapRegionSize=1m gc.stress.TestStressRSetCoarsening 10 10 1800
diff --git a/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithG1.java b/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithG1.java
index 64a090025ace4..da372773b0eb5 100644
--- a/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithG1.java
+++ b/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithG1.java
@@ -31,7 +31,7 @@
* @library /
* @requires vm.gc.G1
* @summary Stress the G1 GC full GC by allocating objects of different lifetimes concurrently with System.gc().
- * @run main/othervm/timeout=300 -Xlog:gc*=info -Xmx512m -XX:+UseG1GC gc.stress.systemgc.TestSystemGCWithG1 270
+ * @run main/othervm/timeout=540 -Xlog:gc*=info -Xmx512m -XX:+UseG1GC gc.stress.systemgc.TestSystemGCWithG1 270
*/
public class TestSystemGCWithG1 {
public static void main(String[] args) throws Exception {
diff --git a/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithParallel.java b/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithParallel.java
index 07a510c7a4e39..38f11a5054a1d 100644
--- a/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithParallel.java
+++ b/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithParallel.java
@@ -31,7 +31,7 @@
* @library /
* @requires vm.gc.Parallel
* @summary Stress the Parallel GC full GC by allocating objects of different lifetimes concurrently with System.gc().
- * @run main/othervm/timeout=300 -Xlog:gc=info -Xmx512m -XX:+UseParallelGC gc.stress.systemgc.TestSystemGCWithParallel 270
+ * @run main/othervm/timeout=540 -Xlog:gc=info -Xmx512m -XX:+UseParallelGC gc.stress.systemgc.TestSystemGCWithParallel 270
*/
public class TestSystemGCWithParallel {
public static void main(String[] args) throws Exception {
diff --git a/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithSerial.java b/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithSerial.java
index 1db15b76e189e..065d5830fd40f 100644
--- a/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithSerial.java
+++ b/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithSerial.java
@@ -31,7 +31,7 @@
* @library /
* @requires vm.gc.Serial
* @summary Stress the Serial GC full GC by allocating objects of different lifetimes concurrently with System.gc().
- * @run main/othervm/timeout=300 -Xlog:gc*=info -Xmx512m -XX:+UseSerialGC gc.stress.systemgc.TestSystemGCWithSerial 270
+ * @run main/othervm/timeout=540 -Xlog:gc*=info -Xmx512m -XX:+UseSerialGC gc.stress.systemgc.TestSystemGCWithSerial 270
*/
public class TestSystemGCWithSerial {
public static void main(String[] args) throws Exception {
diff --git a/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithShenandoah.java b/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithShenandoah.java
index 13129552873db..ea475d42e0c51 100644
--- a/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithShenandoah.java
+++ b/test/hotspot/jtreg/gc/stress/systemgc/TestSystemGCWithShenandoah.java
@@ -32,12 +32,12 @@
* @requires vm.gc.Shenandoah
* @summary Stress the Shenandoah GC full GC by allocating objects of different lifetimes concurrently with System.gc().
*
- * @run main/othervm/timeout=300 -Xlog:gc*=info -Xmx512m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
+ * @run main/othervm/timeout=540 -Xlog:gc*=info -Xmx512m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:+UseShenandoahGC
* -XX:+ShenandoahVerify
* gc.stress.systemgc.TestSystemGCWithShenandoah 270
*
- * @run main/othervm/timeout=300 -Xlog:gc*=info -Xmx512m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
+ * @run main/othervm/timeout=540 -Xlog:gc*=info -Xmx512m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:+UseShenandoahGC
* gc.stress.systemgc.TestSystemGCWithShenandoah 270
*/
@@ -49,12 +49,12 @@
* @requires vm.gc.Shenandoah
* @summary Stress the Shenandoah GC full GC by allocating objects of different lifetimes concurrently with System.gc().
*
- * @run main/othervm/timeout=300 -Xlog:gc*=info -Xmx512m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
+ * @run main/othervm/timeout=540 -Xlog:gc*=info -Xmx512m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
* -XX:+ShenandoahVerify
* gc.stress.systemgc.TestSystemGCWithShenandoah 270
*
- * @run main/othervm/timeout=300 -Xlog:gc*=info -Xmx512m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
+ * @run main/othervm/timeout=540 -Xlog:gc*=info -Xmx512m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
* gc.stress.systemgc.TestSystemGCWithShenandoah 270
*/
diff --git a/test/hotspot/jtreg/gc/z/TestUncommit.java b/test/hotspot/jtreg/gc/z/TestUncommit.java
index afb736501dd6b..0e674358be54a 100644
--- a/test/hotspot/jtreg/gc/z/TestUncommit.java
+++ b/test/hotspot/jtreg/gc/z/TestUncommit.java
@@ -27,7 +27,7 @@
* @test TestUncommit
* @requires vm.gc.Z
* @summary Test ZGC uncommit unused memory
- * @run main/othervm -XX:+UseZGC -Xlog:gc*,gc+heap=debug,gc+stats=off -Xms128M -Xmx512M -XX:ZUncommitDelay=5 gc.z.TestUncommit
+ * @run main/othervm/timeout=480 -XX:+UseZGC -Xlog:gc*,gc+heap=debug,gc+stats=off -Xms128M -Xmx512M -XX:ZUncommitDelay=5 gc.z.TestUncommit
*/
import java.util.ArrayList;
diff --git a/test/hotspot/jtreg/gtest/GTestWrapper.java b/test/hotspot/jtreg/gtest/GTestWrapper.java
index 1bd9734e48c00..2ee174b11befd 100644
--- a/test/hotspot/jtreg/gtest/GTestWrapper.java
+++ b/test/hotspot/jtreg/gtest/GTestWrapper.java
@@ -27,7 +27,7 @@
* @modules java.base/jdk.internal.misc
* java.xml
* @requires vm.flagless
- * @run main/native GTestWrapper
+ * @run main/native/timeout=480 GTestWrapper
*/
import jdk.test.lib.Platform;
diff --git a/test/hotspot/jtreg/runtime/8176717/TestInheritFD.java b/test/hotspot/jtreg/runtime/8176717/TestInheritFD.java
index f2a17acdd647e..358e2040a0ba5 100644
--- a/test/hotspot/jtreg/runtime/8176717/TestInheritFD.java
+++ b/test/hotspot/jtreg/runtime/8176717/TestInheritFD.java
@@ -78,6 +78,8 @@
* the third VM.
*/
+import jdk.test.lib.Utils;
+
public class TestInheritFD {
public static final String LEAKS_FD = "VM RESULT => LEAKS FD";
@@ -90,8 +92,7 @@ public class TestInheritFD {
public static final String THIRD_VM_PID_PREFIX = "Third VM pid=";
public static final String THIRD_VM_WAITING_PREFIX = "Third VM waiting for second VM pid=";
- public static float timeoutFactor = Float.parseFloat(System.getProperty("test.timeout.factor", "1.0"));
- public static long subProcessTimeout = (long)(15L * timeoutFactor);
+ public static long subProcessTimeout = (long)(15L * Utils.TIMEOUT_FACTOR);
// Extract a pid from the specified String at the specified start offset.
private static long extractPidFromStringOffset(String str, int start) {
diff --git a/test/hotspot/jtreg/runtime/CreateMirror/ArraysNewInstanceBug.java b/test/hotspot/jtreg/runtime/CreateMirror/ArraysNewInstanceBug.java
index cb45f00d6663b..ed7fe061a0898 100644
--- a/test/hotspot/jtreg/runtime/CreateMirror/ArraysNewInstanceBug.java
+++ b/test/hotspot/jtreg/runtime/CreateMirror/ArraysNewInstanceBug.java
@@ -26,7 +26,7 @@
* @bug 8182397
* @summary race in setting array_klass field for component mirror with mirror update for klass
* @modules java.base/jdk.internal.misc
- * @run main/othervm -Xcomp ArraysNewInstanceBug
+ * @run main/othervm/timeout=480 -Xcomp ArraysNewInstanceBug
*/
// This test crashes in compiled code with race, because the compiler generates code that assumes this ordering.
diff --git a/test/hotspot/jtreg/runtime/ErrorHandling/CreateCoredumpOnCrash.java b/test/hotspot/jtreg/runtime/ErrorHandling/CreateCoredumpOnCrash.java
index 76ea10d77cbbe..a8fc5ba2386a2 100644
--- a/test/hotspot/jtreg/runtime/ErrorHandling/CreateCoredumpOnCrash.java
+++ b/test/hotspot/jtreg/runtime/ErrorHandling/CreateCoredumpOnCrash.java
@@ -28,7 +28,7 @@
* java.compiler
* java.management
* jdk.internal.jvmstat/sun.jvmstat.monitor
- * @run driver CreateCoredumpOnCrash
+ * @run driver/timeout=480 CreateCoredumpOnCrash
* @requires vm.flagless
*/
diff --git a/test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java b/test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java
index 0e4f01bb55fe8..a21c6b2b2334b 100644
--- a/test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java
+++ b/test/hotspot/jtreg/runtime/InvocationTests/invocationC1Tests.java
@@ -32,7 +32,7 @@
* @modules java.base/jdk.internal.misc
* @compile invokespecial/Checker.java invokespecial/ClassGenerator.java invokespecial/Generator.java
*
- * @run driver/timeout=1800 invocationC1Tests special
+ * @run driver/timeout=7200 invocationC1Tests special
*/
/*
@@ -45,7 +45,7 @@
* @modules java.base/jdk.internal.misc
* @compile invokevirtual/Checker.java invokevirtual/ClassGenerator.java invokevirtual/Generator.java
*
- * @run driver/timeout=1800 invocationC1Tests virtual
+ * @run driver/timeout=7200 invocationC1Tests virtual
*/
/*
@@ -58,7 +58,7 @@
* @modules java.base/jdk.internal.misc
* @compile invokeinterface/Checker.java invokeinterface/ClassGenerator.java invokeinterface/Generator.java
*
- * @run driver/timeout=1800 invocationC1Tests interface
+ * @run driver/timeout=7200 invocationC1Tests interface
*/
import jdk.test.lib.process.ProcessTools;
diff --git a/test/hotspot/jtreg/runtime/InvocationTests/invokeinterfaceTests.java b/test/hotspot/jtreg/runtime/InvocationTests/invokeinterfaceTests.java
index 1cf175030beef..fdbffb3afcfc9 100644
--- a/test/hotspot/jtreg/runtime/InvocationTests/invokeinterfaceTests.java
+++ b/test/hotspot/jtreg/runtime/InvocationTests/invokeinterfaceTests.java
@@ -33,7 +33,7 @@
* @compile invokeinterface/Checker.java invokeinterface/ClassGenerator.java
* invokeinterface/Generator.java
*
- * @run driver/timeout=1800 invokeinterfaceTests current-int
+ * @run driver/timeout=5400 invokeinterfaceTests current-int
*/
/*
@@ -47,7 +47,7 @@
* @compile invokeinterface/Checker.java invokeinterface/ClassGenerator.java
* invokeinterface/Generator.java
*
- * @run driver/timeout=1800 invokeinterfaceTests current-comp
+ * @run driver/timeout=5400 invokeinterfaceTests current-comp
*/
/*
@@ -61,7 +61,7 @@
* @compile invokeinterface/Checker.java invokeinterface/ClassGenerator.java
* invokeinterface/Generator.java
*
- * @run driver/timeout=1800 invokeinterfaceTests old-int
+ * @run driver/timeout=5400 invokeinterfaceTests old-int
*/
import jdk.test.lib.process.ProcessTools;
diff --git a/test/hotspot/jtreg/runtime/LoadClass/TestResize.java b/test/hotspot/jtreg/runtime/LoadClass/TestResize.java
index 9177ede52dafd..a52b8d939ecea 100644
--- a/test/hotspot/jtreg/runtime/LoadClass/TestResize.java
+++ b/test/hotspot/jtreg/runtime/LoadClass/TestResize.java
@@ -31,7 +31,7 @@
* @modules java.base/jdk.internal.misc
* java.management
* @compile TriggerResize.java
- * @run driver TestResize
+ * @run driver/timeout=480 TestResize
*/
import jdk.test.lib.Platform;
diff --git a/test/hotspot/jtreg/runtime/NMT/VirtualAllocCommitMerge.java b/test/hotspot/jtreg/runtime/NMT/VirtualAllocCommitMerge.java
index 4d691eb920ab9..315b2c5e62a36 100644
--- a/test/hotspot/jtreg/runtime/NMT/VirtualAllocCommitMerge.java
+++ b/test/hotspot/jtreg/runtime/NMT/VirtualAllocCommitMerge.java
@@ -32,7 +32,7 @@
* java.management
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm -Xbootclasspath/a:. -Xint -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail VirtualAllocCommitMerge
+ * @run main/othervm/timeout=480 -Xbootclasspath/a:. -Xint -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail VirtualAllocCommitMerge
*
*/
diff --git a/test/hotspot/jtreg/runtime/SelectionResolution/InvokeInterfaceICCE.java b/test/hotspot/jtreg/runtime/SelectionResolution/InvokeInterfaceICCE.java
index 9212b2d003234..f00ed1636e245 100644
--- a/test/hotspot/jtreg/runtime/SelectionResolution/InvokeInterfaceICCE.java
+++ b/test/hotspot/jtreg/runtime/SelectionResolution/InvokeInterfaceICCE.java
@@ -28,7 +28,7 @@
* @requires vm.opt.final.ClassUnloading
* @library /testlibrary/asm
* @library /runtime/SelectionResolution/classes
- * @run main/othervm/timeout=500 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeInterfaceICCE
+ * @run main/othervm/timeout=2000 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeInterfaceICCE
*/
import java.util.Arrays;
diff --git a/test/hotspot/jtreg/runtime/SelectionResolution/InvokeInterfaceSuccessTest.java b/test/hotspot/jtreg/runtime/SelectionResolution/InvokeInterfaceSuccessTest.java
index 4eb3c06e63799..f27c03308e9a4 100644
--- a/test/hotspot/jtreg/runtime/SelectionResolution/InvokeInterfaceSuccessTest.java
+++ b/test/hotspot/jtreg/runtime/SelectionResolution/InvokeInterfaceSuccessTest.java
@@ -28,7 +28,7 @@
* @requires vm.opt.final.ClassUnloading
* @library /testlibrary/asm
* @library /runtime/SelectionResolution/classes
- * @run main/othervm/timeout=300 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeInterfaceSuccessTest
+ * @run main/othervm/timeout=1200 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeInterfaceSuccessTest
*/
import java.util.Arrays;
diff --git a/test/hotspot/jtreg/runtime/SelectionResolution/InvokeVirtualICCE.java b/test/hotspot/jtreg/runtime/SelectionResolution/InvokeVirtualICCE.java
index c041bca153d90..1a0e67aeeabfe 100644
--- a/test/hotspot/jtreg/runtime/SelectionResolution/InvokeVirtualICCE.java
+++ b/test/hotspot/jtreg/runtime/SelectionResolution/InvokeVirtualICCE.java
@@ -28,7 +28,7 @@
* @requires vm.opt.final.ClassUnloading
* @library /testlibrary/asm
* @library /runtime/SelectionResolution/classes
- * @run main/othervm/timeout=1200 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeVirtualICCE
+ * @run main/othervm/timeout=4800 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeVirtualICCE
*/
import java.util.Arrays;
diff --git a/test/hotspot/jtreg/runtime/SelectionResolution/InvokeVirtualSuccessTest.java b/test/hotspot/jtreg/runtime/SelectionResolution/InvokeVirtualSuccessTest.java
index a20e934d6519f..821b11169ab35 100644
--- a/test/hotspot/jtreg/runtime/SelectionResolution/InvokeVirtualSuccessTest.java
+++ b/test/hotspot/jtreg/runtime/SelectionResolution/InvokeVirtualSuccessTest.java
@@ -28,7 +28,7 @@
* @requires vm.opt.final.ClassUnloading
* @library /testlibrary/asm
* @library /runtime/SelectionResolution/classes
- * @run main/othervm/timeout=400 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeVirtualSuccessTest
+ * @run main/othervm/timeout=1600 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies InvokeVirtualSuccessTest
*/
import java.util.Arrays;
diff --git a/test/hotspot/jtreg/runtime/Thread/TestThreadDumpMonitorContention.java b/test/hotspot/jtreg/runtime/Thread/TestThreadDumpMonitorContention.java
index c232f257142f0..e367137a77dd6 100644
--- a/test/hotspot/jtreg/runtime/Thread/TestThreadDumpMonitorContention.java
+++ b/test/hotspot/jtreg/runtime/Thread/TestThreadDumpMonitorContention.java
@@ -30,7 +30,7 @@
*
* @library /test/lib
* @modules java.base/jdk.internal.misc
- * @run main/othervm TestThreadDumpMonitorContention
+ * @run main/othervm/timeout=480 TestThreadDumpMonitorContention
*/
import java.io.BufferedReader;
diff --git a/test/hotspot/jtreg/runtime/cds/DeterministicDump.java b/test/hotspot/jtreg/runtime/cds/DeterministicDump.java
index 202262a8117bc..d26ca8cc7cf3c 100644
--- a/test/hotspot/jtreg/runtime/cds/DeterministicDump.java
+++ b/test/hotspot/jtreg/runtime/cds/DeterministicDump.java
@@ -29,7 +29,7 @@
* @library /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
+ * @run main/othervm/timeout=480 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI DeterministicDump
*/
diff --git a/test/hotspot/jtreg/runtime/cds/appcds/LotsOfSyntheticClasses.java b/test/hotspot/jtreg/runtime/cds/appcds/LotsOfSyntheticClasses.java
index 6267c6bdf33bc..1a0ce672910c0 100644
--- a/test/hotspot/jtreg/runtime/cds/appcds/LotsOfSyntheticClasses.java
+++ b/test/hotspot/jtreg/runtime/cds/appcds/LotsOfSyntheticClasses.java
@@ -37,7 +37,7 @@
* @summary Try to archive lots and lots of classes.
* @requires vm.cds
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
- * @run driver/timeout=500 LotsOfSyntheticClasses
+ * @run driver/timeout=8000 LotsOfSyntheticClasses
*/
public class LotsOfSyntheticClasses {
diff --git a/test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java b/test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java
index 4f2822a5970cc..9ccdae9bd5601 100644
--- a/test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java
+++ b/test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java
@@ -22,30 +22,22 @@
*
*/
-import jdk.test.lib.Utils;
-import jdk.test.lib.BuildHelper;
-import jdk.test.lib.JDKToolFinder;
-import jdk.test.lib.Platform;
-import jdk.test.lib.cds.CDSOptions;
-import jdk.test.lib.cds.CDSTestUtils;
-import jdk.test.lib.cds.CDSTestUtils.Result;
-import jdk.test.lib.process.ProcessTools;
-import jdk.test.lib.process.OutputAnalyzer;
+import cdsutils.DynamicDumpHelper;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.net.URI;
import java.nio.file.DirectoryStream;
-import java.nio.file.Files;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
+import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
-import java.util.Arrays;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Date;
import java.util.Enumeration;
import java.util.regex.Matcher;
@@ -53,8 +45,17 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipOutputStream;
+import jdk.test.lib.BuildHelper;
+import jdk.test.lib.JDKToolFinder;
+import jdk.test.lib.Platform;
+import jdk.test.lib.Utils;
+import jdk.test.lib.Utils;
+import jdk.test.lib.cds.CDSOptions;
+import jdk.test.lib.cds.CDSTestUtils.Result;
+import jdk.test.lib.cds.CDSTestUtils;
+import jdk.test.lib.process.OutputAnalyzer;
+import jdk.test.lib.process.ProcessTools;
import jtreg.SkippedException;
-import cdsutils.DynamicDumpHelper;
/**
@@ -76,9 +77,6 @@ public class TestCommon extends CDSTestUtils {
private static final SimpleDateFormat timeStampFormat =
new SimpleDateFormat("HH'h'mm'm'ss's'SSS");
- private static final String timeoutFactor =
- System.getProperty("test.timeout.factor", "1.0");
-
private static String currentArchiveName;
// Call this method to start new archive with new unique name
@@ -420,7 +418,7 @@ public static OutputAnalyzer runWithArchive(CDSOptions opts)
cmd.add("-Xshare:" + opts.xShareMode);
cmd.add("-showversion");
cmd.add("-XX:SharedArchiveFile=" + getCurrentArchiveName());
- cmd.add("-Dtest.timeout.factor=" + timeoutFactor);
+ cmd.add("-Dtest.timeout.factor=" + Utils.TIMEOUT_FACTOR);
if (opts.appJar != null) {
cmd.add("-cp");
diff --git a/test/hotspot/jtreg/runtime/cds/appcds/aotCode/AOTCodeCompressedOopsTest.java b/test/hotspot/jtreg/runtime/cds/appcds/aotCode/AOTCodeCompressedOopsTest.java
index 4587eeae5e51b..e1d132dd98430 100644
--- a/test/hotspot/jtreg/runtime/cds/appcds/aotCode/AOTCodeCompressedOopsTest.java
+++ b/test/hotspot/jtreg/runtime/cds/appcds/aotCode/AOTCodeCompressedOopsTest.java
@@ -32,12 +32,12 @@
* subtests with this flag.
* @library /test/lib /test/setup_aot
* @build AOTCodeCompressedOopsTest JavacBenchApp
- * @run driver jdk.test.lib.helpers.ClassFileInstaller -jar app.jar
+ * @run driver/timeout=480 jdk.test.lib.helpers.ClassFileInstaller -jar app.jar
* JavacBenchApp
* JavacBenchApp$ClassFile
* JavacBenchApp$FileManager
* JavacBenchApp$SourceFile
- * @run driver AOTCodeCompressedOopsTest
+ * @run driver/timeout=480 AOTCodeCompressedOopsTest
*/
import java.util.ArrayList;
diff --git a/test/hotspot/jtreg/runtime/cds/appcds/aotProfile/AOTProfileFlags.java b/test/hotspot/jtreg/runtime/cds/appcds/aotProfile/AOTProfileFlags.java
index fe9c7e7bbb71b..4dc4512e01c59 100644
--- a/test/hotspot/jtreg/runtime/cds/appcds/aotProfile/AOTProfileFlags.java
+++ b/test/hotspot/jtreg/runtime/cds/appcds/aotProfile/AOTProfileFlags.java
@@ -36,7 +36,7 @@
* JavacBenchApp$FileManager
* JavacBenchApp$SourceFile
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar hello.jar Hello
- * @run driver AOTProfileFlags
+ * @run driver/timeout=480 AOTProfileFlags
*/
import jdk.test.lib.cds.CDSTestUtils;
diff --git a/test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsStress.java b/test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsStress.java
index 5871305139e41..1114870d1d3d0 100644
--- a/test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsStress.java
+++ b/test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/SharedStringsStress.java
@@ -28,7 +28,7 @@
* @requires vm.cds.write.archived.java.heap
* @library /test/hotspot/jtreg/runtime/cds/appcds /test/lib
* @build HelloString
- * @run driver/timeout=650 SharedStringsStress
+ * @run driver/timeout=2600 SharedStringsStress
*/
import java.io.File;
import java.io.FileOutputStream;
diff --git a/test/hotspot/jtreg/runtime/exceptionMsgs/ArrayIndexOutOfBoundsException/ArrayIndexOutOfBoundsExceptionTest.java b/test/hotspot/jtreg/runtime/exceptionMsgs/ArrayIndexOutOfBoundsException/ArrayIndexOutOfBoundsExceptionTest.java
index 434864ff3bfe2..ebb85c2a0d064 100644
--- a/test/hotspot/jtreg/runtime/exceptionMsgs/ArrayIndexOutOfBoundsException/ArrayIndexOutOfBoundsExceptionTest.java
+++ b/test/hotspot/jtreg/runtime/exceptionMsgs/ArrayIndexOutOfBoundsException/ArrayIndexOutOfBoundsExceptionTest.java
@@ -34,8 +34,8 @@
* @test
* @requires !vm.graal.enabled
* @comment These test C1 and C2 so make no sense when Graal is enabled.
- * @run testng/othervm -Xcomp -XX:-TieredCompilation ArrayIndexOutOfBoundsExceptionTest
- * @run testng/othervm -Xcomp -XX:TieredStopAtLevel=1 ArrayIndexOutOfBoundsExceptionTest
+ * @run testng/othervm/timeout=480 -Xcomp -XX:-TieredCompilation ArrayIndexOutOfBoundsExceptionTest
+ * @run testng/othervm/timeout=480 -Xcomp -XX:TieredStopAtLevel=1 ArrayIndexOutOfBoundsExceptionTest
*/
import java.io.ByteArrayInputStream;
diff --git a/test/hotspot/jtreg/runtime/logging/RedefineClasses.java b/test/hotspot/jtreg/runtime/logging/RedefineClasses.java
index 8b75802cd3bcc..fd6ce4463cce1 100644
--- a/test/hotspot/jtreg/runtime/logging/RedefineClasses.java
+++ b/test/hotspot/jtreg/runtime/logging/RedefineClasses.java
@@ -31,7 +31,7 @@
* java.instrument
* @requires vm.jvmti
* @run main RedefineClassHelper
- * @run main/othervm -Xmx256m -XX:MaxMetaspaceSize=64m -javaagent:redefineagent.jar -Xlog:all=trace:file=all.log RedefineClasses
+ * @run main/othervm/timeout=480 -Xmx256m -XX:MaxMetaspaceSize=64m -javaagent:redefineagent.jar -Xlog:all=trace:file=all.log RedefineClasses
*/
// package access top-level class to avoid problem with RedefineClassHelper
diff --git a/test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java b/test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java
index 09646d0735831..119110a09b565 100644
--- a/test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java
+++ b/test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java
@@ -25,7 +25,7 @@
* @test
* @bug 8297977
* @summary Test that throwing OOM from reflected method gets InvocationTargetException
- * @run main/othervm -Xmx128m ReflectOutOfMemoryError
+ * @run main/othervm/timeout=480 -Xmx128m ReflectOutOfMemoryError
*/
import java.lang.reflect.*;
diff --git a/test/hotspot/jtreg/serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java b/test/hotspot/jtreg/serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java
index 7980b5ae28d0a..04086c49a4da5 100644
--- a/test/hotspot/jtreg/serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java
+++ b/test/hotspot/jtreg/serviceability/HeapDump/UnmountedVThreadNativeMethodAtTop.java
@@ -29,7 +29,7 @@
* @library /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run junit/othervm/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI --enable-native-access=ALL-UNNAMED UnmountedVThreadNativeMethodAtTop
+ * @run junit/othervm/native/timeout=480 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI --enable-native-access=ALL-UNNAMED UnmountedVThreadNativeMethodAtTop
*/
import java.lang.management.ManagementFactory;
diff --git a/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java b/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java
index 38fd16808cd75..58bcb1f6ddd7f 100644
--- a/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java
+++ b/test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java
@@ -30,7 +30,7 @@
* @summary Verifies the JVMTI Heap Monitor Thread information sanity.
* @requires vm.jvmti
* @compile HeapMonitorThreadTest.java
- * @run main/othervm/native -Xmx512m -agentlib:HeapMonitorTest MyPackage.HeapMonitorThreadTest
+ * @run main/othervm/native/timeout=480 -Xmx512m -agentlib:HeapMonitorTest MyPackage.HeapMonitorThreadTest
*/
import java.util.List;
diff --git a/test/hotspot/jtreg/serviceability/jvmti/SetTag/TagMapTest.java b/test/hotspot/jtreg/serviceability/jvmti/SetTag/TagMapTest.java
index d75f56714a495..355ac02e3c057 100644
--- a/test/hotspot/jtreg/serviceability/jvmti/SetTag/TagMapTest.java
+++ b/test/hotspot/jtreg/serviceability/jvmti/SetTag/TagMapTest.java
@@ -26,9 +26,9 @@
* @bug 8306843
* @summary Test that 10M tags doesn't time out.
* @requires vm.jvmti
- * @run main/othervm/native -agentlib:TagMapTest
- * -Xlog:jvmti+table
- * TagMapTest
+ * @run main/othervm/native/timeout=480 -agentlib:TagMapTest
+ * -Xlog:jvmti+table
+ * TagMapTest
*/
import java.util.ArrayList;
diff --git a/test/hotspot/jtreg/serviceability/jvmti/vthread/SuspendResume2/SuspendResume2.java b/test/hotspot/jtreg/serviceability/jvmti/vthread/SuspendResume2/SuspendResume2.java
index b773cf3fa0a59..80dd42c480a76 100644
--- a/test/hotspot/jtreg/serviceability/jvmti/vthread/SuspendResume2/SuspendResume2.java
+++ b/test/hotspot/jtreg/serviceability/jvmti/vthread/SuspendResume2/SuspendResume2.java
@@ -28,7 +28,7 @@
* @library /test/lib
* @compile SuspendResume2.java
* @run driver jdk.test.lib.FileInstaller . .
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=700
* -Djdk.virtualThreadScheduler.maxPoolSize=1
* -agentlib:SuspendResume2
* SuspendResume2
@@ -40,7 +40,7 @@
* @library /test/lib
* @compile SuspendResume2.java
* @run driver jdk.test.lib.FileInstaller . .
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=700
* -Djdk.virtualThreadScheduler.maxPoolSize=1
* -agentlib:SuspendResume2
* -XX:-VerifyContinuations
@@ -53,7 +53,7 @@
* @library /test/lib
* @compile SuspendResume2.java
* @run driver jdk.test.lib.FileInstaller . .
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=700
* -agentlib:SuspendResume2
* -XX:+UnlockExperimentalVMOptions
* -XX:-VMContinuations
diff --git a/test/hotspot/jtreg/serviceability/sa/ClhsdbDumpheap.java b/test/hotspot/jtreg/serviceability/sa/ClhsdbDumpheap.java
index fef7c827eb7b0..54867cef72f66 100644
--- a/test/hotspot/jtreg/serviceability/sa/ClhsdbDumpheap.java
+++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbDumpheap.java
@@ -46,7 +46,7 @@
* timeouts. As there is no known direct benefit from running the test
* with -Xcomp, we disable such testing.
* @library /test/lib
- * @run main/othervm/timeout=240 ClhsdbDumpheap
+ * @run main/othervm/timeout=960 ClhsdbDumpheap
*/
public class ClhsdbDumpheap {
diff --git a/test/hotspot/jtreg/serviceability/sa/ClhsdbFindPC.java b/test/hotspot/jtreg/serviceability/sa/ClhsdbFindPC.java
index c75a38490d5a0..1b23d242313be 100644
--- a/test/hotspot/jtreg/serviceability/sa/ClhsdbFindPC.java
+++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbFindPC.java
@@ -41,7 +41,7 @@
* @requires vm.compiler1.enabled
* @requires vm.opt.DeoptimizeALot != true
* @library /test/lib
- * @run main/othervm/timeout=480 ClhsdbFindPC true false
+ * @run main/othervm/timeout=1920 ClhsdbFindPC true false
*/
/**
@@ -53,7 +53,7 @@
* @requires vm.compiler1.enabled
* @requires vm.opt.DeoptimizeALot != true
* @library /test/lib
- * @run main/othervm/timeout=480 ClhsdbFindPC true true
+ * @run main/othervm/timeout=1920 ClhsdbFindPC true true
*/
/**
@@ -64,7 +64,7 @@
* @requires (os.arch != "riscv64" | !(vm.cpu.features ~= ".*qemu.*"))
* @requires vm.compiler1.enabled
* @library /test/lib
- * @run main/othervm/timeout=480 ClhsdbFindPC false false
+ * @run main/othervm/timeout=1920 ClhsdbFindPC false false
*/
/**
@@ -74,7 +74,7 @@
* @requires vm.hasSA
* @requires vm.compiler1.enabled
* @library /test/lib
- * @run main/othervm/timeout=480 ClhsdbFindPC false true
+ * @run main/othervm/timeout=1920 ClhsdbFindPC false true
*/
public class ClhsdbFindPC {
diff --git a/test/hotspot/jtreg/serviceability/sa/ClhsdbJstackXcompStress.java b/test/hotspot/jtreg/serviceability/sa/ClhsdbJstackXcompStress.java
index 7e06cb3af9524..d092c15b4c30e 100644
--- a/test/hotspot/jtreg/serviceability/sa/ClhsdbJstackXcompStress.java
+++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbJstackXcompStress.java
@@ -39,7 +39,7 @@
* @requires (os.arch != "riscv64" | !(vm.cpu.features ~= ".*qemu.*"))
* @requires vm.opt.DeoptimizeALot != true
* @library /test/lib
- * @run driver/timeout=300 ClhsdbJstackXcompStress
+ * @run driver/timeout=1200 ClhsdbJstackXcompStress
*/
public class ClhsdbJstackXcompStress {
diff --git a/test/hotspot/jtreg/serviceability/sa/ClhsdbThreadContext.java b/test/hotspot/jtreg/serviceability/sa/ClhsdbThreadContext.java
index 988227f396124..0c8d0ddde41c4 100644
--- a/test/hotspot/jtreg/serviceability/sa/ClhsdbThreadContext.java
+++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbThreadContext.java
@@ -35,7 +35,7 @@
* @requires vm.hasSA
* @requires (os.arch != "riscv64" | !(vm.cpu.features ~= ".*qemu.*"))
* @library /test/lib
- * @run main/othervm ClhsdbThreadContext
+ * @run main/othervm/timeout=480 ClhsdbThreadContext
*/
public class ClhsdbThreadContext {
diff --git a/test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackLineNumbers.java b/test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackLineNumbers.java
index 87e664ef308f0..17126a9982f47 100644
--- a/test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackLineNumbers.java
+++ b/test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackLineNumbers.java
@@ -41,7 +41,7 @@
* @requires os.family=="windows" | os.family == "linux" | os.family == "mac"
* @requires vm.flagless
* @library /test/lib
- * @run driver TestJhsdbJstackLineNumbers
+ * @run driver/timeout=480 TestJhsdbJstackLineNumbers
*/
/*
diff --git a/test/hotspot/jtreg/serviceability/sa/TestObjectAlignment.java b/test/hotspot/jtreg/serviceability/sa/TestObjectAlignment.java
index 28d6f74c68923..b41d808871be1 100644
--- a/test/hotspot/jtreg/serviceability/sa/TestObjectAlignment.java
+++ b/test/hotspot/jtreg/serviceability/sa/TestObjectAlignment.java
@@ -42,7 +42,7 @@
* @requires (os.arch != "riscv64" | !(vm.cpu.features ~= ".*qemu.*"))
* @modules jdk.hotspot.agent/sun.jvm.hotspot
* jdk.hotspot.agent/sun.jvm.hotspot.runtime
- * @run driver TestObjectAlignment
+ * @run driver/timeout=480 TestObjectAlignment
*/
public class TestObjectAlignment {
diff --git a/test/hotspot/jtreg/serviceability/sa/sadebugd/SADebugDTest.java b/test/hotspot/jtreg/serviceability/sa/sadebugd/SADebugDTest.java
index ebdd69e7d4044..2622be86a2a66 100644
--- a/test/hotspot/jtreg/serviceability/sa/sadebugd/SADebugDTest.java
+++ b/test/hotspot/jtreg/serviceability/sa/sadebugd/SADebugDTest.java
@@ -32,7 +32,7 @@
* @modules java.base/jdk.internal.misc
* @library /test/lib
*
- * @run driver SADebugDTest
+ * @run driver/timeout=480 SADebugDTest
*/
import java.util.concurrent.TimeUnit;
@@ -125,7 +125,7 @@ private static void testWithPid(final boolean useRmiPort, final boolean useRegis
// The startProcess will block until the 'golden' string appears in either process' stdout or stderr
// In case of timeout startProcess kills the debugd process
- Process debugd = startProcess("debugd", pb, null, l -> checkOutput(l, useRmiPort, rmiPort), 20, TimeUnit.SECONDS);
+ Process debugd = startProcess("debugd", pb, null, l -> checkOutput(l, useRmiPort, rmiPort), 80, TimeUnit.SECONDS);
// If we are here, this means we have received the golden line and the test has passed
// The debugd remains running, we have to kill it
diff --git a/test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestNotCompilable.java b/test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestNotCompilable.java
index 8ba72f1bd864d..bf8de679dfa86 100644
--- a/test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestNotCompilable.java
+++ b/test/hotspot/jtreg/testlibrary_tests/ir_framework/tests/TestNotCompilable.java
@@ -33,7 +33,7 @@
* @requires vm.compiler2.enabled & vm.flagless & vm.debug == true
* @summary Test the functionality of allowNotCompilable.
* @library /test/lib /
- * @run driver ir_framework.tests.TestNotCompilable
+ * @run driver/timeout=480 ir_framework.tests.TestNotCompilable
*/
public class TestNotCompilable {
diff --git a/test/hotspot/jtreg/vmTestbase/gc/g1/unloading/tests/unloading_redefinition_inMemoryCompilation_keep_class/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/g1/unloading/tests/unloading_redefinition_inMemoryCompilation_keep_class/TestDescription.java
index 51d787ec2188c..ff7cb0cb08284 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/g1/unloading/tests/unloading_redefinition_inMemoryCompilation_keep_class/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/g1/unloading/tests/unloading_redefinition_inMemoryCompilation_keep_class/TestDescription.java
@@ -42,7 +42,7 @@
* @requires vm.opt.ClassUnloadingWithConcurrentMark != false
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI
diff --git a/test/hotspot/jtreg/vmTestbase/gc/g1/unloading/tests/unloading_redefinition_inMemoryCompilation_keep_obj/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/g1/unloading/tests/unloading_redefinition_inMemoryCompilation_keep_obj/TestDescription.java
index 4d681af1e2826..64be1c399c3b0 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/g1/unloading/tests/unloading_redefinition_inMemoryCompilation_keep_obj/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/g1/unloading/tests/unloading_redefinition_inMemoryCompilation_keep_obj/TestDescription.java
@@ -42,7 +42,7 @@
* @requires vm.opt.ClassUnloadingWithConcurrentMark != false
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI
diff --git a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large001/large001.java b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large001/large001.java
index 4d93785e5c6fb..8af60ab25a387 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large001/large001.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large001/large001.java
@@ -59,7 +59,7 @@
* @comment generate and compile nsk.share.gc.newclass.* classes
* @run driver nsk.share.gc.GenClassesBuilder
*
- * @run main/othervm/timeout=300
+ * @run main/othervm/timeout=1200
* -XX:-UseGCOverheadLimit
* -Xlog:gc*
* gc.gctests.LargeObjects.large001.large001
diff --git a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large002/TestDescription.java
index c96b47cf1cdd3..47a627d5bc37a 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large002/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large002/TestDescription.java
@@ -60,7 +60,7 @@
* @comment generate and compile nsk.share.gc.newclass.* classes
* @run driver nsk.share.gc.GenClassesBuilder
*
- * @run main/othervm/timeout=300
+ * @run main/othervm/timeout=1200
* -XX:-UseGCOverheadLimit
* gc.gctests.LargeObjects.large001.large001
* -largeClassesPath classes
diff --git a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large003/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large003/TestDescription.java
index adfa88791537c..06ebeaeaad553 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large003/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large003/TestDescription.java
@@ -64,7 +64,7 @@
* @comment generate and compile nsk.share.gc.newclass.* classes
* @run driver nsk.share.gc.GenClassesBuilder
*
- * @run main/othervm/timeout=300
+ * @run main/othervm/timeout=1200
* -XX:-UseGCOverheadLimit
* gc.gctests.LargeObjects.large001.large001
* -largeClassesPath classes
diff --git a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large004/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large004/TestDescription.java
index 7b09a18d7989a..7d24d8da41ef3 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large004/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large004/TestDescription.java
@@ -64,7 +64,7 @@
* @comment generate and compile nsk.share.gc.newclass.* classes
* @run driver nsk.share.gc.GenClassesBuilder
*
- * @run main/othervm/timeout=300
+ * @run main/othervm/timeout=1200
* -XX:-UseGCOverheadLimit
* gc.gctests.LargeObjects.large001.large001
* -largeClassesPath classes
diff --git a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large005/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large005/TestDescription.java
index d2943ff90ab7e..a709da1aa71bf 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large005/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large005/TestDescription.java
@@ -64,7 +64,7 @@
* @comment generate and compile nsk.share.gc.newclass.* classes
* @run driver nsk.share.gc.GenClassesBuilder
*
- * @run main/othervm/timeout=300
+ * @run main/othervm/timeout=1200
* -XX:-UseGCOverheadLimit
* gc.gctests.LargeObjects.large001.large001
* -largeClassesPath classes
diff --git a/test/hotspot/jtreg/vmTestbase/gc/gctests/SoftReference/soft004/soft004.java b/test/hotspot/jtreg/vmTestbase/gc/gctests/SoftReference/soft004/soft004.java
index ba9b6d7575069..12dc82ec8dbee 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/gctests/SoftReference/soft004/soft004.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/gctests/SoftReference/soft004/soft004.java
@@ -32,7 +32,7 @@
* /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI gc.gctests.SoftReference.soft004.soft004 -t 1
+ * @run main/othervm/timeout=480 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI gc.gctests.SoftReference.soft004.soft004 -t 1
*/
package gc.gctests.SoftReference.soft004;
diff --git a/test/hotspot/jtreg/vmTestbase/gc/gctests/WeakReference/weak004/weak004.java b/test/hotspot/jtreg/vmTestbase/gc/gctests/WeakReference/weak004/weak004.java
index bf86f5d8045d0..f4160b19286d2 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/gctests/WeakReference/weak004/weak004.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/gctests/WeakReference/weak004/weak004.java
@@ -32,7 +32,7 @@
* /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI gc.gctests.WeakReference.weak004.weak004 -t 1
+ * @run main/othervm/timeout=480 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI gc.gctests.WeakReference.weak004.weak004 -t 1
*/
package gc.gctests.WeakReference.weak004;
diff --git a/test/hotspot/jtreg/vmTestbase/gc/vector/CircularListLow/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/vector/CircularListLow/TestDescription.java
index 2e4cfcb99920c..6700562a6ade3 100644
--- a/test/hotspot/jtreg/vmTestbase/gc/vector/CircularListLow/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/gc/vector/CircularListLow/TestDescription.java
@@ -31,5 +31,5 @@
*
* @library /vmTestbase
* /test/lib
- * @run main/othervm gc.vector.SimpleGC.SimpleGC -ms low -gp circularList(low)
+ * @run main/othervm/timeout=480 gc.vector.SimpleGC.SimpleGC -ms low -gp circularList(low)
*/
diff --git a/test/hotspot/jtreg/vmTestbase/jit/escape/AdaptiveBlocking/AdaptiveBlocking001/AdaptiveBlocking001.java b/test/hotspot/jtreg/vmTestbase/jit/escape/AdaptiveBlocking/AdaptiveBlocking001/AdaptiveBlocking001.java
index e2d04c6745a2a..0a45c6c77be8f 100644
--- a/test/hotspot/jtreg/vmTestbase/jit/escape/AdaptiveBlocking/AdaptiveBlocking001/AdaptiveBlocking001.java
+++ b/test/hotspot/jtreg/vmTestbase/jit/escape/AdaptiveBlocking/AdaptiveBlocking001/AdaptiveBlocking001.java
@@ -37,7 +37,7 @@
* @library /vmTestbase
* /test/lib
* @build jit.escape.AdaptiveBlocking.AdaptiveBlocking001.AdaptiveBlocking001
- * @run driver/timeout=300 ExecDriver --java -server -Xcomp -XX:+DoEscapeAnalysis
+ * @run driver/timeout=1200 ExecDriver --java -server -Xcomp -XX:+DoEscapeAnalysis
* jit.escape.AdaptiveBlocking.AdaptiveBlocking001.AdaptiveBlocking001 -numRounds 10
*/
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/shrink_grow/CompressedClassSpaceSize/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/shrink_grow/CompressedClassSpaceSize/TestDescription.java
index 577bb5f1a92e6..4d7199260c192 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/shrink_grow/CompressedClassSpaceSize/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/shrink_grow/CompressedClassSpaceSize/TestDescription.java
@@ -31,11 +31,10 @@
*
* @requires vm.opt.final.ClassUnloading
* @library /vmTestbase /test/lib
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -DrequiresCompressedClassSpace=true
* -XX:MaxMetaspaceSize=100m
* -XX:CompressedClassSpaceSize=10m
* -Xlog:gc*:gc.log
* metaspace.shrink_grow.ShrinkGrowTest.ShrinkGrowTest
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/shrink_grow/ShrinkGrowMultiJVM/ShrinkGrowMultiJVM.java b/test/hotspot/jtreg/vmTestbase/metaspace/shrink_grow/ShrinkGrowMultiJVM/ShrinkGrowMultiJVM.java
index c59f8cd9e9e30..6d4d91a9835df 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/shrink_grow/ShrinkGrowMultiJVM/ShrinkGrowMultiJVM.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/shrink_grow/ShrinkGrowMultiJVM/ShrinkGrowMultiJVM.java
@@ -31,7 +31,7 @@
* @requires vm.opt.final.ClassUnloading
* @library /vmTestbase /test/lib
* @build metaspace.shrink_grow.ShrinkGrowMultiJVM.ShrinkGrowMultiJVM
- * @run driver metaspace.shrink_grow.ShrinkGrowMultiJVM.ShrinkGrowMultiJVM
+ * @run driver/timeout=480 metaspace.shrink_grow.ShrinkGrowMultiJVM.ShrinkGrowMultiJVM
*/
package metaspace.shrink_grow.ShrinkGrowMultiJVM;
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy001/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy001/TestDescription.java
index 32f5c0c55e8a1..59950474af3b4 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy001/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy001/TestDescription.java
@@ -33,7 +33,7 @@
* @library /vmTestbase /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xss10m
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy002/TestDescription.java
index 75faa8d14e3da..ed56bfb10c54f 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy002/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy002/TestDescription.java
@@ -33,7 +33,7 @@
* @library /vmTestbase /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xss10m
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy003/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy003/TestDescription.java
index 743de7b4e7d47..3b0ee78ab3580 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy003/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy003/TestDescription.java
@@ -33,7 +33,7 @@
* @library /vmTestbase /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xss10m
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy004/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy004/TestDescription.java
index bc6287eaf601f..960d30e61bd60 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy004/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy004/TestDescription.java
@@ -33,7 +33,7 @@
* @library /vmTestbase /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xss10m
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy005/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy005/TestDescription.java
index 030f07fbaea91..8dd6e2c6c0941 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy005/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy005/TestDescription.java
@@ -33,7 +33,7 @@
* @library /vmTestbase /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xss10m
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy006/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy006/TestDescription.java
index f294a4ecc6a6e..2f52b57696bb7 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy006/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy006/TestDescription.java
@@ -33,7 +33,7 @@
* @library /vmTestbase /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xss10m
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy007/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy007/TestDescription.java
index f3238d787c24d..b8b3793571b19 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy007/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy007/TestDescription.java
@@ -35,7 +35,7 @@
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
* @comment generate and compile metaspace.stressHierarchy.common.HumongousClass
* @run driver metaspace.stressHierarchy.common.GenClassesBuilder
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:MaxMetaspaceSize=450m
* -Xss10m
* -Xbootclasspath/a:.
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy008/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy008/TestDescription.java
index a37231429c3ca..d953d42d3afa0 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy008/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy008/TestDescription.java
@@ -35,7 +35,7 @@
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
* @comment generate and compile metaspace.stressHierarchy.common.HumongousClass
* @run driver metaspace.stressHierarchy.common.GenClassesBuilder
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:MaxMetaspaceSize=450m
* -Xss10m
* -Xbootclasspath/a:.
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy009/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy009/TestDescription.java
index dd28f1665a7e1..33952d8fae0dd 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy009/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy009/TestDescription.java
@@ -35,7 +35,7 @@
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
* @comment generate and compile metaspace.stressHierarchy.common.HumongousClass
* @run driver metaspace.stressHierarchy.common.GenClassesBuilder
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:MaxMetaspaceSize=450m
* -Xss10m
* -Xbootclasspath/a:.
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy010/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy010/TestDescription.java
index ab11ba486472f..ff114225f7892 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy010/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy010/TestDescription.java
@@ -35,7 +35,7 @@
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
* @comment generate and compile metaspace.stressHierarchy.common.HumongousClass
* @run driver metaspace.stressHierarchy.common.GenClassesBuilder
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:MaxMetaspaceSize=450m
* -Xss10m
* -Xbootclasspath/a:.
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy011/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy011/TestDescription.java
index ce304df4041dc..20843428cf6c4 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy011/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy011/TestDescription.java
@@ -35,7 +35,7 @@
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
* @comment generate and compile metaspace.stressHierarchy.common.HumongousClass
* @run driver metaspace.stressHierarchy.common.GenClassesBuilder
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:MaxMetaspaceSize=450m
* -Xss10m
* -Xbootclasspath/a:.
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy012/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy012/TestDescription.java
index a37eda53cfa7a..8e0c19d2f2e72 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy012/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy012/TestDescription.java
@@ -35,7 +35,7 @@
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
* @comment generate and compile metaspace.stressHierarchy.common.HumongousClass
* @run driver metaspace.stressHierarchy.common.GenClassesBuilder
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:MaxMetaspaceSize=250m
* -Xss10m
* -Xbootclasspath/a:.
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy013/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy013/TestDescription.java
index a10d9b2d50bac..debb4820ea8c2 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy013/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy013/TestDescription.java
@@ -33,7 +33,7 @@
* @library /vmTestbase /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xss10m
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy014/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy014/TestDescription.java
index c0ceceb1e50b2..4c1142bb2d8b0 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy014/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy014/TestDescription.java
@@ -33,7 +33,7 @@
* @library /vmTestbase /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xss10m
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy015/TestDescription.java b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy015/TestDescription.java
index a0c73e6dd0ca7..c938926ff67ed 100644
--- a/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy015/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/metaspace/stressHierarchy/stressHierarchy015/TestDescription.java
@@ -33,7 +33,7 @@
* @library /vmTestbase /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -Xss10m
* -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects001/referringObjects001.java b/test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects001/referringObjects001.java
index 7e73bace34253..024ed5292d672 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects001/referringObjects001.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects001/referringObjects001.java
@@ -57,7 +57,7 @@
* /test/lib
* @build nsk.jdi.ObjectReference.referringObjects.referringObjects001.referringObjects001
* nsk.share.jdi.TestClass1
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=480
* nsk.jdi.ObjectReference.referringObjects.referringObjects001.referringObjects001
* -verbose
* -arch=${os.family}-${os.simpleArch}
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jdi/StepEvent/_itself_/stepEvent004/stepEvent004.java b/test/hotspot/jtreg/vmTestbase/nsk/jdi/StepEvent/_itself_/stepEvent004/stepEvent004.java
index ff303d4c52d9b..14c0ebf74f5e1 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jdi/StepEvent/_itself_/stepEvent004/stepEvent004.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jdi/StepEvent/_itself_/stepEvent004/stepEvent004.java
@@ -62,7 +62,7 @@
* @library /vmTestbase
* /test/lib
* @build nsk.jdi.StepEvent._itself_.stepEvent004.stepEvent004
- * @run driver
+ * @run driver/timeout=480
* nsk.jdi.StepEvent._itself_.stepEvent004.stepEvent004
* -verbose
* -arch=${os.family}-${os.simpleArch}
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jdi/ThreadDeathEvent/thread/thread001/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jdi/ThreadDeathEvent/thread/thread001/TestDescription.java
index b638a58976f7d..4de5c34344b69 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jdi/ThreadDeathEvent/thread/thread001/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jdi/ThreadDeathEvent/thread/thread001/TestDescription.java
@@ -82,7 +82,7 @@
* /test/lib
* @build nsk.jdi.ThreadDeathEvent.thread.thread001
* nsk.jdi.ThreadDeathEvent.thread.thread001a
- * @run driver
+ * @run driver/timeout=480
* nsk.jdi.ThreadDeathEvent.thread.thread001
* -verbose
* -arch=${os.family}-${os.simpleArch}
@@ -91,4 +91,3 @@
* -transport.address=dynamic
* -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jdi/stress/serial/mixed002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jdi/stress/serial/mixed002/TestDescription.java
index 938673e2284d4..4a53f25180c48 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jdi/stress/serial/mixed002/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jdi/stress/serial/mixed002/TestDescription.java
@@ -63,7 +63,7 @@
* nsk.share.jdi.MonitorEventsDebuggee
*
* @build nsk.share.jdi.SerialExecutionDebugger
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=480
* nsk.share.jdi.SerialExecutionDebugger
* -verbose
* -arch=${os.family}-${os.simpleArch}
@@ -76,4 +76,3 @@
* -configFile ${test.src}/mixed002.tests
* -testWorkDir .
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jdwp/VirtualMachine/HoldEvents/holdevents002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jdwp/VirtualMachine/HoldEvents/holdevents002/TestDescription.java
index e41efd46bb4ed..1db774c91f30b 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jdwp/VirtualMachine/HoldEvents/holdevents002/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jdwp/VirtualMachine/HoldEvents/holdevents002/TestDescription.java
@@ -53,7 +53,7 @@
* @library /vmTestbase /test/hotspot/jtreg/vmTestbase
* /test/lib
* @build nsk.jdwp.VirtualMachine.HoldEvents.holdevents002a
- * @run main/othervm/timeout=420
+ * @run main/othervm/timeout=1680
* nsk.jdwp.VirtualMachine.HoldEvents.holdevents002
* -arch=${os.family}-${os.simpleArch}
* -verbose
@@ -62,4 +62,3 @@
* -transport.address=dynamic
* -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/RawMonitorWait/rawmnwait001/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/RawMonitorWait/rawmnwait001/TestDescription.java
index 7705260e80264..eaefdaebe570e 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/RawMonitorWait/rawmnwait001/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/RawMonitorWait/rawmnwait001/TestDescription.java
@@ -37,6 +37,5 @@
*
* @library /vmTestbase
* /test/lib
- * @run main/othervm/native -agentlib:rawmnwait001 nsk.jvmti.RawMonitorWait.rawmnwait001
+ * @run main/othervm/native/timeout=480 -agentlib:rawmnwait001 nsk.jvmti.RawMonitorWait.rawmnwait001
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP03/sp03t001/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP03/sp03t001/TestDescription.java
index 9c5f23d0c43c6..7f7e4b48ded6a 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP03/sp03t001/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP03/sp03t001/TestDescription.java
@@ -59,8 +59,7 @@
* @build nsk.jvmti.scenarios.sampling.SP03.sp03t001
* @comment see JDK-8243962 for background on requires expression
* @requires !(vm.flightRecorder & vm.debug & os.family == "windows")
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=480
* -agentlib:sp03t001=-waittime=5,threads=10
* nsk.jvmti.scenarios.sampling.SP03.sp03t001
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP03/sp03t002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP03/sp03t002/TestDescription.java
index ba4d3f332ce3b..ca3ba2595fa18 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP03/sp03t002/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP03/sp03t002/TestDescription.java
@@ -59,8 +59,7 @@
* @build nsk.jvmti.scenarios.sampling.SP03.sp03t002
* @comment see JDK-8243962 for background on requires expression
* @requires !(vm.flightRecorder & vm.debug & os.family == "windows")
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=480
* -agentlib:sp03t002=-waittime=5,threads=10
* nsk.jvmti.scenarios.sampling.SP03.sp03t002
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP04/sp04t001/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP04/sp04t001/TestDescription.java
index 730cfa104e5be..88d3ff8cd6631 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP04/sp04t001/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP04/sp04t001/TestDescription.java
@@ -58,8 +58,7 @@
* /test/lib
* @comment see JDK-8243962 for background on requires expression
* @requires !(vm.flightRecorder & vm.debug & os.family == "windows")
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=480
* -agentlib:sp04t001=-waittime=5,threads=10
* nsk.jvmti.scenarios.sampling.SP04.sp04t001
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP04/sp04t002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP04/sp04t002/TestDescription.java
index e03a343e381b4..733a519bf63b1 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP04/sp04t002/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP04/sp04t002/TestDescription.java
@@ -58,8 +58,7 @@
* /test/lib
* @comment see JDK-8243962 for background on requires expression
* @requires !(vm.flightRecorder & vm.debug & os.family == "windows")
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=480
* -agentlib:sp04t002=-waittime=5,threads=10
* nsk.jvmti.scenarios.sampling.SP04.sp04t002
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP07/sp07t001/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP07/sp07t001/TestDescription.java
index 79ccb9c8e70d9..6e94a69357945 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP07/sp07t001/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/sampling/SP07/sp07t001/TestDescription.java
@@ -38,8 +38,7 @@
*
* @library /vmTestbase
* /test/lib
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=480
* -agentlib:sp07t001=-waittime=5
* nsk.jvmti.scenarios.sampling.SP07.sp07t001
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/monitoring/ThreadInfo/isSuspended/issuspended002.java b/test/hotspot/jtreg/vmTestbase/nsk/monitoring/ThreadInfo/isSuspended/issuspended002.java
index 411d70f6e914c..9c8094e0cf445 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/monitoring/ThreadInfo/isSuspended/issuspended002.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/monitoring/ThreadInfo/isSuspended/issuspended002.java
@@ -37,7 +37,7 @@
* @library /vmTestbase
* /test/lib
* /testlibrary
- * @run main/othervm nsk.monitoring.ThreadInfo.isSuspended.issuspended002
+ * @run main/othervm/timeout=480 nsk.monitoring.ThreadInfo.isSuspended.issuspended002
*/
package nsk.monitoring.ThreadInfo.isSuspended;
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace001/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace001/TestDescription.java
index 53b73954af5a7..200e1f19b72e9 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace001/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace001/TestDescription.java
@@ -60,6 +60,5 @@
*
* @library /vmTestbase
* /test/lib
- * @run main/othervm/native nsk.monitoring.stress.thread.strace001 -threadCount=50 -depth=200
+ * @run main/othervm/native/timeout=480 nsk.monitoring.stress.thread.strace001 -threadCount=50 -depth=200
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace002/TestDescription.java
index b41fb5f76f851..9ba193272d5a8 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace002/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace002/TestDescription.java
@@ -58,10 +58,9 @@
*
* @library /vmTestbase
* /test/lib
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=480
* nsk.monitoring.stress.thread.strace001
* -testMode=server
* -threadCount=50
* -depth=200
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace003/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace003/TestDescription.java
index c39f4dde2af23..9a4fd0daee8d7 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace003/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/monitoring/stress/thread/strace003/TestDescription.java
@@ -58,11 +58,10 @@
*
* @library /vmTestbase
* /test/lib
- * @run main/othervm/native
+ * @run main/othervm/native/timeout=480
* nsk.monitoring.stress.thread.strace001
* -testMode=server
* -MBeanServer=custom
* -threadCount=50
* -depth=200
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace006.java b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace006.java
index ef27aa57bfad9..552dc3aa797ba 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace006.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace006.java
@@ -43,7 +43,7 @@
*
* @library /vmTestbase
* /test/lib
- * @run main/othervm/native nsk.stress.strace.strace006
+ * @run main/othervm/native/timeout=480 nsk.stress.strace.strace006
*/
package nsk.stress.strace;
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread001.java b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread001.java
index 4fdab351c79f8..539fc5ef8ce00 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread001.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread001.java
@@ -33,7 +33,7 @@
* lower than the main thread.
*
* @library /test/lib
- * @run main/othervm nsk.stress.thread.thread001 500 2m 5s
+ * @run main/othervm/timeout=480 nsk.stress.thread.thread001 500 2m 5s
*/
package nsk.stress.thread;
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread002.java b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread002.java
index a574533581fe9..2ddfd218723de 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread002.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread002.java
@@ -32,7 +32,7 @@
* Try to start the given number of threads of the same
* priority that the main thread.
*
- * @run main/othervm nsk.stress.thread.thread002 500 2m 5s
+ * @run main/othervm/timeout=480 nsk.stress.thread.thread002 500 2m 5s
*/
package nsk.stress.thread;
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread005.java b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread005.java
index 0a5e33441cbf1..f097fd8b6055d 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread005.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread005.java
@@ -31,7 +31,7 @@
* DESCRIPTION
* Try many threads starting simultaneously.
*
- * @run main/othervm nsk.stress.thread.thread005 500 2m 5s
+ * @run main/othervm/timeout=480 nsk.stress.thread.thread005 500 2m 5s
*/
package nsk.stress.thread;
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread006.java b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread006.java
index 6adda1929d2c7..56b1ae857ced1 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread006.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread006.java
@@ -32,7 +32,7 @@
* Try many threads of lower priority
* starting simultaneously.
*
- * @run main/othervm nsk.stress.thread.thread006 500 2m 5s
+ * @run main/othervm/timeout=480 nsk.stress.thread.thread006 500 2m 5s
*/
package nsk.stress.thread;
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread007.java b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread007.java
index 26388c28d0a6b..df5337a73f7b9 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread007.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread007.java
@@ -32,7 +32,7 @@
* Try to start the given number of threads starting simultaneously
* when notifyall() is signaled at the stopLine object.
*
- * @run main/othervm/timeout=300 nsk.stress.thread.thread007 500 2m 5s
+ * @run main/othervm/timeout=1200 nsk.stress.thread.thread007 500 2m 5s
*/
package nsk.stress.thread;
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread008.java b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread008.java
index 2cbc198a69348..abe3c5ad7fb36 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread008.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/thread/thread008.java
@@ -33,7 +33,7 @@
* starting simultaneously when notifyall() is signaled at the
* stopLine object.
*
- * @run main/othervm/timeout=300 nsk.stress.thread.thread008 500 2m 5s
+ * @run main/othervm/timeout=1200 nsk.stress.thread.thread008 500 2m 5s
*/
package nsk.stress.thread;
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree001/btree001.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree001/btree001.java
index db6ebf0a44683..053ad669bbfed 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree001/btree001.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree001/btree001.java
@@ -40,14 +40,13 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
* -t 1
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree002/btree002.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree002/btree002.java
index 5a4a9fae0d6a0..b3b69a064a461 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree002/btree002.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree002/btree002.java
@@ -39,15 +39,14 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
* -useSingleLoader
* -t 1
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree003/btree003.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree003/btree003.java
index b915e0d716c43..b1e40a1506971 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree003/btree003.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree003/btree003.java
@@ -39,15 +39,14 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
* -t 1
* -useFatClass
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree004/btree004.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree004/btree004.java
index 14094d6a5a1d7..7960642a00bdd 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree004/btree004.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree004/btree004.java
@@ -40,13 +40,12 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree005/btree005.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree005/btree005.java
index 42041c94fcf26..7da24f7cc973c 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree005/btree005.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree005/btree005.java
@@ -39,14 +39,13 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
* -useSingleLoader
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree006/btree006.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree006/btree006.java
index 49b55e39456a8..82f67bba5a7e8 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree006/btree006.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree006/btree006.java
@@ -39,14 +39,13 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
* -useFatClass
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree007/btree007.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree007/btree007.java
index 6c74967dd220d..69ffec5a43d32 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree007/btree007.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree007/btree007.java
@@ -42,15 +42,14 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
* -t 1
* -stressHeap
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree008/btree008.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree008/btree008.java
index 9861f3c051f09..0caa1c0ea70f6 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree008/btree008.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree008/btree008.java
@@ -41,11 +41,11 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
@@ -53,4 +53,3 @@
* -stressHeap
* -t 1
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree009/btree009.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree009/btree009.java
index 273fceebb819e..2b4055c68430a 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree009/btree009.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree009/btree009.java
@@ -41,11 +41,11 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
@@ -53,4 +53,3 @@
* -stressHeap
* -useFatClass
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree010/btree010.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree010/btree010.java
index 1e9f3e8813fd3..b5235e657579f 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree010/btree010.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree010/btree010.java
@@ -42,14 +42,13 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
* -stressHeap
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree011/btree011.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree011/btree011.java
index 507abcef2786f..27b3178fa6e4f 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree011/btree011.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree011/btree011.java
@@ -41,15 +41,14 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
* -useSingleLoader
* -stressHeap
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree012/btree012.java b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree012/btree012.java
index 45ce91504572d..4fbef9bf3553a 100644
--- a/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree012/btree012.java
+++ b/test/hotspot/jtreg/vmTestbase/nsk/sysdict/vm/stress/btree/btree012/btree012.java
@@ -41,15 +41,14 @@
* @comment btree classes import nsk.sysdict.share.*
* @build nsk.sysdict.share.*
* @comment build btree.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder btree
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder btree
* @comment build fats.jar
- * @run driver nsk.sysdict.share.GenClassesBuilder fats
+ * @run driver/timeout=480 nsk.sysdict.share.GenClassesBuilder fats
* @build nsk.sysdict.share.BTreeTest
- * @run main/othervm
+ * @run main/othervm/timeout=480
* -XX:-UseGCOverheadLimit
* nsk.sysdict.share.BTreeTest
* -jarpath btree.jar${path.separator}fats.jar
* -stressHeap
* -useFatClass
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/vm/mlvm/indy/func/jvmti/mergeCP_indy2manyDiff_a/TestDescription.java b/test/hotspot/jtreg/vmTestbase/vm/mlvm/indy/func/jvmti/mergeCP_indy2manyDiff_a/TestDescription.java
index 5afb841f14166..c6287573f0a86 100644
--- a/test/hotspot/jtreg/vmTestbase/vm/mlvm/indy/func/jvmti/mergeCP_indy2manyDiff_a/TestDescription.java
+++ b/test/hotspot/jtreg/vmTestbase/vm/mlvm/indy/func/jvmti/mergeCP_indy2manyDiff_a/TestDescription.java
@@ -59,4 +59,3 @@
* vm.mlvm.indy.func.jvmti.share.IndyRedefineTest
* -dummyClassName=vm.mlvm.indy.func.jvmti.mergeCP_indy2manyDiff_a.INDIFY_Dummy0
*/
-
diff --git a/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.java b/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.java
index 146db0dfa8064..72212757a8e2d 100644
--- a/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.java
+++ b/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/i2c_c2i/Test.java
@@ -50,7 +50,7 @@
* @build vm.mlvm.meth.stress.compiler.i2c_c2i.Test
* @run driver vm.mlvm.share.IndifiedClassesBuilder
*
- * @run main/othervm -XX:CompileCommand=MemLimit,*.*,0 vm.mlvm.meth.stress.compiler.i2c_c2i.Test
+ * @run main/othervm/timeout=480 -XX:CompileCommand=MemLimit,*.*,0 vm.mlvm.meth.stress.compiler.i2c_c2i.Test
*/
package vm.mlvm.meth.stress.compiler.i2c_c2i;
diff --git a/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/sequences/Test.java b/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/sequences/Test.java
index 9a34a2b7b3d45..4985a787ffbe0 100644
--- a/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/sequences/Test.java
+++ b/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/sequences/Test.java
@@ -41,7 +41,7 @@
* @build vm.mlvm.meth.stress.compiler.sequences.Test
* @run driver vm.mlvm.share.IndifiedClassesBuilder
*
- * @run main/othervm
+ * @run main/othervm/timeout=480
* vm.mlvm.meth.stress.compiler.sequences.Test
* -threadsPerCpu 1
* -threadsExtra 2
diff --git a/test/jdk/com/sun/crypto/provider/KeyFactory/TestProviderLeak.java b/test/jdk/com/sun/crypto/provider/KeyFactory/TestProviderLeak.java
index b2122d5691b35..48dedd86d97e0 100644
--- a/test/jdk/com/sun/crypto/provider/KeyFactory/TestProviderLeak.java
+++ b/test/jdk/com/sun/crypto/provider/KeyFactory/TestProviderLeak.java
@@ -28,6 +28,7 @@
* @summary com.sun.crypto.provider.SunJCE instance leak using KRB5 and
* LoginContext
* @author Brad Wetmore
+ * @library /test/lib
*
* @run main/othervm -Xmx20m TestProviderLeak
*
@@ -47,6 +48,7 @@
import java.util.*;
import java.util.concurrent.*;
import jdk.test.lib.security.SecurityUtils;
+import jdk.test.lib.Utils;
public class TestProviderLeak {
private static final int MB = 1024 * 1024;
@@ -59,9 +61,7 @@ public class TestProviderLeak {
static {
int timeout = 5;
try {
- double timeoutFactor = Double.parseDouble(
- System.getProperty("test.timeout.factor", "1.0"));
- timeout = (int) (timeout * timeoutFactor);
+ timeout = (int) (timeout * Utils.TIMEOUT_FACTOR);
} catch (Exception e) {
System.out.println("Warning: " + e);
}
diff --git a/test/jdk/com/sun/jdi/InterruptHangTest.java b/test/jdk/com/sun/jdi/InterruptHangTest.java
index 5dcb5efef3196..063b724aeacec 100644
--- a/test/jdk/com/sun/jdi/InterruptHangTest.java
+++ b/test/jdk/com/sun/jdi/InterruptHangTest.java
@@ -24,12 +24,14 @@
import com.sun.jdi.*;
import com.sun.jdi.event.*;
import com.sun.jdi.request.*;
+import jdk.test.lib.Utils;
/**
* @test
* @bug 6459476
* @summary Test interrupting debuggee with single stepping enable
* @author jjh
+ * @library /test/lib
*
* @run build TestScaffold VMConnection TargetListener TargetAdapter
* @run compile -g InterruptHangTest.java
@@ -284,8 +286,7 @@ protected void runTests() throws Exception {
timerThread = new Thread("test timer") {
public void run() {
int mySteps = 0;
- float timeoutFactor = Float.parseFloat(System.getProperty("test.timeout.factor", "1.0"));
- long sleepSeconds = (long)(20 * timeoutFactor);
+ long sleepSeconds = (long)(20 * Utils.TIMEOUT_FACTOR);
println("Timer watching for steps every " + sleepSeconds + " seconds");
while (true) {
try {
diff --git a/test/jdk/com/sun/jdi/MethodEntryExitEvents.java b/test/jdk/com/sun/jdi/MethodEntryExitEvents.java
index abdb0ff7c7564..8498f66ebb287 100644
--- a/test/jdk/com/sun/jdi/MethodEntryExitEvents.java
+++ b/test/jdk/com/sun/jdi/MethodEntryExitEvents.java
@@ -29,9 +29,9 @@
*
* @run build TestScaffold VMConnection TargetListener TargetAdapter
* @run compile -g MethodEntryExitEvents.java
- * @run driver MethodEntryExitEvents SUSPEND_EVENT_THREAD MethodEntryExitEventsDebugee
- * @run driver MethodEntryExitEvents SUSPEND_NONE MethodEntryExitEventsDebugee
- * @run driver MethodEntryExitEvents SUSPEND_ALL MethodEntryExitEventsDebugee
+ * @run driver/timeout=480 MethodEntryExitEvents SUSPEND_EVENT_THREAD MethodEntryExitEventsDebugee
+ * @run driver/timeout=480 MethodEntryExitEvents SUSPEND_NONE MethodEntryExitEventsDebugee
+ * @run driver/timeout=480 MethodEntryExitEvents SUSPEND_ALL MethodEntryExitEventsDebugee
*/
import com.sun.jdi.*;
import com.sun.jdi.event.*;
diff --git a/test/jdk/com/sun/jdi/ThreadMemoryLeakTest.java b/test/jdk/com/sun/jdi/ThreadMemoryLeakTest.java
index ef44829f1f71e..b7763fddfb4dd 100644
--- a/test/jdk/com/sun/jdi/ThreadMemoryLeakTest.java
+++ b/test/jdk/com/sun/jdi/ThreadMemoryLeakTest.java
@@ -32,7 +32,7 @@
* @run build TestScaffold VMConnection TargetListener TargetAdapter
* @run compile -g ThreadMemoryLeakTest.java
* @comment run with -Xmx7m so any leak will quickly produce OOME
- * @run main/othervm -Xmx7m ThreadMemoryLeakTest
+ * @run main/othervm/timeout=480 -Xmx7m ThreadMemoryLeakTest
*/
import com.sun.jdi.*;
import com.sun.jdi.event.*;
diff --git a/test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java b/test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java
index 123c5120daf7b..294e0f5f1a8f2 100644
--- a/test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java
+++ b/test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java
@@ -27,7 +27,7 @@
* @summary Multi-threaded client timeout tests for ldap pool
* @library /test/lib
* lib/
- * @run testng/othervm LdapPoolTimeoutTest
+ * @run testng/othervm/timeout=480 LdapPoolTimeoutTest
*/
import org.testng.annotations.Test;
@@ -144,4 +144,3 @@ private static void attemptConnect(Hashtable
Sets the argument -timeoutHandlerTimeout
for JTReg. The
default value is 0. This is only valid if the failure handler is
diff --git a/doc/testing.md b/doc/testing.md
index 4421e9fc3e83b..00e5b8181cd68 100644
--- a/doc/testing.md
+++ b/doc/testing.md
@@ -381,10 +381,9 @@ never more than *memory size in GB/2*.
The `TIMEOUT_FACTOR` is forwarded to JTReg framework itself
(`-timeoutFactor`). Also, some test cases that programmatically wait a
-certain amount of time will apply this factor. If we run in
-forced compilation mode (`-Xcomp`), [RunTest.gmk](../make/RunTests.gmk)
-will automatically adjust this factor to compensate for the
-interpreter not being as fast as JITed code. Defaults to 1.
+certain amount of time will apply this factor. If we run in forced
+compilation mode (`-Xcomp`), the build system will automatically
+adjust this factor to compensate for less performance. Defaults to 1.
#### FAILURE_HANDLER_TIMEOUT