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

Sergey Kuksenko skuksenko at openjdk.org
Tue May 23 16:50:33 UTC 2023


On Tue, 23 May 2023 08:38:42 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> 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.

Ok.
Also, that means - we don't need this new test class. It's better just to add isVirtual check into existing ones.

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

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


More information about the jmh-dev mailing list