On Fri, 10 Nov 2023 01:49:17 GMT, Leonid Mesnik <lmes...@openjdk.org> wrote:

>> Test thread factory is a mode similar to VM flags and should not be used in 
>> ProcessTools.createLimitedTestJavaProcessBuilder(). Only 
>> createTestJavaProcessBuilder() should use it like jtreg VM options.
>> 
>> Adding the test thread factory requires the injection of arguments in the 
>> middle of the list. I don't think it makes sense to modify arguments in 
>> several places so I replaced it with the flag isLimited and moved all 
>> modifications in createJavaProcessBuilder().
>> 
>> Testing tier1-5.
>
> Leonid Mesnik has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   variable was renamed.

Okay, sorry, I've misunderstood the nature of this issue. This change has no 
affect on whether jtreg runs a specific test (or set of tests) using the 
virtual thread wrapper to launch the test. This only affects code that uses 
ProcessTools and where the launched JVM would examine the `test.thread.factory` 
property. How many tests actually look at this property directly in code that 
is run via ProcessTools? The only tests that appear to look at this property 
are JDB and JDI tests, where we have a test framework that selects use of 
virtual threads based on this property. I couldn't find any test that would 
actually be affected by this. Sorry for the noise.

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

PR Comment: https://git.openjdk.org/jdk/pull/16442#issuecomment-1805069620

Reply via email to