Skip to content

Commit ed36b9b

Browse files
committed
8370851: Mark hotspot and jdk tests incompatible with test thread factory
Reviewed-by: alanb, kevinw, sspitsyn
1 parent bb9aeed commit ed36b9b

File tree

13 files changed

+28
-14
lines changed

13 files changed

+28
-14
lines changed

test/hotspot/jtreg/runtime/Thread/ThreadCountLimit.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/**
2525
* @test
2626
* @summary Stress test that reaches the process limit for thread count, or time limit.
27+
* @requires test.thread.factory == null
2728
* @requires os.family != "aix"
2829
* @key stress
2930
* @library /test/lib
@@ -33,6 +34,7 @@
3334
/**
3435
* @test
3536
* @summary Stress test that reaches the process limit for thread count, or time limit.
37+
* @requires test.thread.factory == null
3638
* @requires os.family == "aix"
3739
* @key stress
3840
* @library /test/lib

test/hotspot/jtreg/runtime/cds/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -30,6 +30,7 @@
3030
* app loader will load the class from the bootclasspath if the
3131
* "--limit-modules java.base" option is specified
3232
* @requires vm.cds & !vm.graal.enabled
33+
* @requires test.thread.factory == null
3334
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
3435
* @modules java.base/jdk.internal.access
3536
* @compile ../../test-classes/EmptyClassHelper.java

test/hotspot/jtreg/runtime/cds/appcds/jigsaw/modulepath/OptimizeModuleHandlingTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
/**
2626
* @test
2727
* @requires vm.cds & !vm.graal.enabled & vm.cds.write.archived.java.heap
28+
* @requires test.thread.factory == null
2829
* @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
2930
* @run driver OptimizeModuleHandlingTest
3031
* @summary test module path changes for optimization of

test/jdk/com/sun/management/ThreadMXBean/ThreadAllocatedMemory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
2626
* @bug 6173675 8231209 8304074 8313081
2727
* @summary Basic test of ThreadMXBean.getThreadAllocatedBytes
2828
* @requires vm.gc.G1
29+
* @requires test.thread.factory != "Virtual"
2930
* @run main/othervm -XX:+UseG1GC ThreadAllocatedMemory
3031
*/
3132

@@ -34,6 +35,7 @@
3435
* @bug 6173675 8231209 8304074 8313081
3536
* @summary Basic test of ThreadMXBean.getThreadAllocatedBytes
3637
* @requires vm.gc.Serial
38+
* @requires test.thread.factory != "Virtual"
3739
* @run main/othervm -XX:+UseSerialGC ThreadAllocatedMemory
3840
*/
3941

test/jdk/com/sun/net/httpserver/bugs/B6431193.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,8 +24,9 @@
2424
/**
2525
* @test
2626
* @bug 6431193
27-
* @library /test/lib
2827
* @summary The new HTTP server exits immediately
28+
* @requires test.thread.factory != "Virtual"
29+
* @library /test/lib
2930
* @run main B6431193
3031
* @run main/othervm -Djava.net.preferIPv6Addresses=true B6431193
3132
*/

test/jdk/java/lang/management/ManagementFactory/ProxyTypeMapping.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -27,6 +27,7 @@
2727
* @summary Test type mapping of the platform MXBean proxy
2828
* returned from Management.newPlatformMXBeanProxy().
2929
* @author Mandy Chung
30+
* @requires test.thread.factory != "Virtual"
3031
*
3132
* @compile ProxyTypeMapping.java
3233
* @run main/othervm -verbose:gc ProxyTypeMapping

test/jdk/java/lang/management/ManagementFactory/ValidateOpenTypes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -27,6 +27,7 @@
2727
* @summary Validate open types mapped for the MXBeans in the platform
2828
* MBeanServer.
2929
* @author Mandy Chung
30+
* @requires test.thread.factory != "Virtual"
3031
*
3132
* @compile ValidateOpenTypes.java
3233
* @run main/othervm -verbose:gc ValidateOpenTypes

test/jdk/java/lang/management/ThreadMXBean/LockedMonitorInNative.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
2525
* @test
2626
* @summary Test ThreadMXBean.getLockedMonitors returns information about an object
2727
* monitor lock entered with a synchronized native method or JNI MonitorEnter
28+
* @requires test.thread.factory != "Virtual"
2829
* @run junit/othervm LockedMonitorInNative
2930
*/
3031

test/jdk/java/lang/management/ThreadMXBean/Locks.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,6 +28,7 @@
2828
* and ThreadInfo.getLockOwnerName()
2929
* @author Mandy Chung
3030
* @author Jaroslav Bachorik
31+
* @requires test.thread.factory != "Virtual"
3132
*
3233
* @library /test/lib
3334
*

test/jdk/java/lang/management/ThreadMXBean/ResetPeakThreadCount.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,7 +28,7 @@
2828
* - ThreadMXBean.resetPeakThreadCount()
2929
* @author Mandy Chung
3030
* @author Jaroslav Bachorik
31-
*
31+
* @requires test.thread.factory != "Virtual"
3232
* @build ResetPeakThreadCount
3333
* @build ThreadDump
3434
* @run main/othervm ResetPeakThreadCount

0 commit comments

Comments
 (0)