RFR: 8303703: Add support of execution tests using virtual thread factory jtreg plugin [v2]

Leonid Mesnik lmesnik at openjdk.org
Tue Apr 18 15:19:57 UTC 2023


On Tue, 18 Apr 2023 14:59:17 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> The plugin which support execution of test's main method in separate virtual thread is added.
>> The plugin is built as a part of test image and might be used in testing by adding JTREG_TEST_THREAD_FACTORY=Virtual option.
>
> Leonid Mesnik has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 34 commits:
> 
>  - updated virtual plugin impl
>  - Merge branch 'master' of https://github.com/openjdk/jdk into ttf-build
>  - opts updated
>  - deps updated
>  - fixed is to are
>  - copyrights fixed
>  - fix
>  - Merge branch 'master' of https://github.com/openjdk/jdk into ttf-build
>  - problemlists deleted.
>  - Merge branch 'master' of https://github.com/openjdk/jdk into ttf-build
>  - ... and 24 more: https://git.openjdk.org/jdk/compare/e3ece365...31e3cbd1

jtreg -testThreadFactoryPath:.... -testThreadFactory:...  can be used separately. You need to compile the implementation, you might use your own implementation. It is used with the -agentvm as well as with -othervm mode ad for all type of tests. 
However this thread factory is used to start thread only to run the main method of the test. There is some support in ProcessTools to run the main mtheod of subprocesses using the thread factory. Also, some jdi/jdb tests are updated to run all thread ad virtual in debugee if plugin is used.

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

PR Comment: https://git.openjdk.org/jdk/pull/13432#issuecomment-1513345433



More information about the build-dev mailing list