RFR: 8370851: Mark hotspot and jdk tests incompatible with test thread factory

Alan Bateman alanb at openjdk.org
Wed Oct 29 07:00:04 UTC 2025


On Tue, 28 Oct 2025 23:30:52 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> There are some tests not compatible with with test thread factory. They are marked with corresponding requires tag.
> 
> Currently, the only "Virtual" test thread factory exist. It tries to start threads as virtual threads.
> 
> The tests that are incompatible with test thread factory are marked with
> test.thread.factory == null
> and the tests that are rather incompatible with virtual threads are makred
> with
> test.thread.factory != "Virtual"

test/jdk/com/sun/management/ThreadMXBean/VirtualThreads.java line 28:

> 26:  * @bug 8284161 8303242
> 27:  * @summary Test com.sun.management.ThreadMXBean with virtual threads
> 28:  * @requires test.thread.factory != "Virtual"

This test allows the "main thread" to be a virtual thread so should pass with JTREG_TEST_THREAD_FACTORY=Virtual. Can you re-check your notes as to why this one should be excluded from JTREG_TEST_THREAD_FACTORY=Virtual runs?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28030#discussion_r2471923090


More information about the hotspot-runtime-dev mailing list