RFR: CODETOOLS-7903471: JMH: Add test for virtual threads executor [v2]

Aleksey Shipilev shade at openjdk.org
Tue May 23 08:41:18 UTC 2023


On Wed, 17 May 2023 14:48:27 GMT, Sergey Kuksenko <skuksenko at openjdk.org> wrote:

>> There are other tests that check a single expected thread.
>
> Test checking is the benchmark was executed in the virtual thread or not.

My point is that we might as well check that methods are executed by the _same virtual thread_, right? So, collect `Thread`-s, check there is only one thread, and optionally check it was virtual.

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

PR Review Comment: https://git.openjdk.org/jmh/pull/103#discussion_r1201810536


More information about the jmh-dev mailing list