8260555: Change the default TIMEOUT_FACTOR from 4 to 1

Reviewed-by: alanb, sspitsyn, lmesnik, ihse
This commit is contained in:
Leo Korinth 2025-09-02 07:27:12 +00:00
parent efb81dafaf
commit 55e7af0560
342 changed files with 810 additions and 850 deletions

View File

@ -398,7 +398,8 @@ TEST_OPTS keywords.</p>
<h4 id="jobs">JOBS</h4>
<p>Currently only applies to JTReg.</p>
<h4 id="timeout_factor">TIMEOUT_FACTOR</h4>
<p>Currently only applies to JTReg.</p>
<p>Currently only applies to <a href="#timeout_factor-1">JTReg
-timeoutFactor</a>.</p>
<h4 id="java_options">JAVA_OPTIONS</h4>
<p>Applies to JTReg, GTest and Micro.</p>
<h4 id="vm_options">VM_OPTIONS</h4>
@ -444,8 +445,12 @@ otherwise it defaults to JOBS, except for Hotspot, where the default is
<em>number of CPU cores/2</em>, but never more than <em>memory size in
GB/2</em>.</p>
<h4 id="timeout_factor-1">TIMEOUT_FACTOR</h4>
<p>The timeout factor (<code>-timeoutFactor</code>).</p>
<p>Defaults to 4.</p>
<p>The <code>TIMEOUT_FACTOR</code> is forwarded to JTReg framework
itself (<code>-timeoutFactor</code>). Also, some test cases that
programmatically wait a certain amount of time will apply this factor.
If we run in forced compilation mode (<code>-Xcomp</code>), the build
system will automatically adjust this factor to compensate for less
performance. Defaults to 1.</p>
<h4 id="failure_handler_timeout">FAILURE_HANDLER_TIMEOUT</h4>
<p>Sets the argument <code>-timeoutHandlerTimeout</code> for JTReg. The
default value is 0. This is only valid if the failure handler is

View File

@ -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
@ -383,9 +383,11 @@ 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`), the build system will automatically
adjust this factor to compensate for less performance. Defaults to 1.
#### FAILURE_HANDLER_TIMEOUT

View File

@ -946,7 +946,8 @@ define SetupRunJtregTestBody
JTREG_ALL_OPTIONS := $$(JTREG_JAVA_OPTIONS) $$(JTREG_VM_OPTIONS)
JTREG_AUTO_PROBLEM_LISTS :=
JTREG_AUTO_TIMEOUT_FACTOR := 4
# Please reach consensus before changing this. It was not easy changing it to a `1`.
JTREG_AUTO_TIMEOUT_FACTOR := 1
ifneq ($$(findstring -Xcomp, $$(JTREG_ALL_OPTIONS)), )
JTREG_AUTO_PROBLEM_LISTS += ProblemList-Xcomp.txt

View File

@ -29,7 +29,7 @@ package compiler.arguments;
* @requires vm.debug & vm.flagless & os.name == "Linux"
* @summary Check functionality of CompileTaskTimeout
* @library /test/lib
* @run driver compiler.arguments.TestCompileTaskTimeout
* @run driver/timeout=480 compiler.arguments.TestCompileTaskTimeout
*/
import jdk.test.lib.process.ProcessTools;

View File

@ -51,7 +51,7 @@ import jdk.test.whitebox.cpuinfo.CPUInfo;
* 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
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@ import java.util.ArrayList;
* @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 { }

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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
*/

View File

@ -37,7 +37,7 @@ import java.util.Random;
* @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 @@ import java.util.Random;
* @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 @@ import java.util.Random;
* @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 {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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*

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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
*/

View File

@ -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
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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
*/

View File

@ -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
*
*/

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -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;

View File

@ -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
*/

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -39,7 +39,7 @@ import java.lang.foreign.*;
* 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 {

View File

@ -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;

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, Loongson Technology Co. Ltd. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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 @@ public class Level2RecompilationTest extends CompLevelsTest {
super.checkLevel(expected, actual);
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -32,7 +32,8 @@ import jdk.test.lib.Asserts;
* @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

View File

@ -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;

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -29,7 +29,7 @@ package gc.g1;
* @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
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -48,20 +48,20 @@ import java.nio.file.Paths;
* @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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -44,23 +44,23 @@ import java.nio.file.Paths;
* @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
*

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -51,7 +51,7 @@ import jdk.test.lib.Utils;
* -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
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -31,10 +31,10 @@ package gc.stress;
* @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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -31,7 +31,7 @@ package gc.stress;
* @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 @@ package gc.stress;
* @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 @@ package gc.stress;
* @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 @@ package gc.stress;
* @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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -38,7 +38,7 @@ import jdk.test.whitebox.WhiteBox;
* @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 @@ import jdk.test.whitebox.WhiteBox;
* @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 @@ import jdk.test.whitebox.WhiteBox;
* @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 @@ import jdk.test.whitebox.WhiteBox;
* @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 @@ import jdk.test.whitebox.WhiteBox;
* @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 @@ import jdk.test.whitebox.WhiteBox;
* @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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -31,7 +31,7 @@ package gc.stress.systemgc;
* @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 {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -31,7 +31,7 @@ package gc.stress.systemgc;
* @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 {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -31,7 +31,7 @@ package gc.stress.systemgc;
* @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 {

View File

@ -32,12 +32,12 @@ package gc.stress.systemgc;
* @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 @@ package gc.stress.systemgc;
* @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
*/

View File

@ -27,7 +27,7 @@ package gc.z;
* @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;

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -56,7 +56,7 @@ import java.util.stream.Stream;
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
* @run driver TestInheritFD
* @run driver/timeout=480 TestInheritFD
*/
/**
@ -78,6 +78,8 @@ import java.util.stream.Stream;
* 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) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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
* @requires !vm.asan
*/

View File

@ -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;

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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
*
*/

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -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
*/

View File

@ -37,7 +37,7 @@ import jdk.test.lib.process.OutputAnalyzer;
* @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 {

View File

@ -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.regex.Pattern;
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 class TestCommon extends CDSTestUtils {
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");

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2019 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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.*;

View File

@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, Google and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@ -30,7 +30,7 @@ package MyPackage;
* @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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -46,7 +46,7 @@ import jtreg.SkippedException;
* 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 {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -41,7 +41,7 @@ import jtreg.SkippedException;
* @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 @@ import jtreg.SkippedException;
* @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 @@ import jtreg.SkippedException;
* @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 @@ import jtreg.SkippedException;
* @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 {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, Red Hat Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@ -39,7 +39,7 @@ import jdk.test.lib.process.OutputAnalyzer;
* @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 {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -35,7 +35,7 @@ import jtreg.SkippedException;
* @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 {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -41,7 +41,7 @@ import jdk.test.lib.SA.SATestUtils;
* @requires os.family=="windows" | os.family == "linux" | os.family == "mac"
* @requires vm.flagless
* @library /test/lib
* @run driver TestJhsdbJstackLineNumbers
* @run driver/timeout=480 TestJhsdbJstackLineNumbers
*/
/*

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -42,7 +42,7 @@ import jdk.test.lib.Utils;
* @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 {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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 @@ public class SADebugDTest {
// 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

View File

@ -33,7 +33,7 @@ import compiler.lib.ir_framework.driver.irmatching.IRViolationException;
* @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 {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -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)
*/

Some files were not shown because too many files have changed in this diff Show More