> The vmTestbase/nsk/jvmti/scenarios/sampling is updated to run testing in the
> virtual threads when virtual thread test factory is enabled.
>
> The ThreadWrapper is helper class that allows tests execute not only main
> thread but other threads as virtual threads.
> It is useful for the pattern
> `class MyThread extends Thread {...}`
> The plan is to convert more tests focusing on serviceability tests. Helps to
> run more jvmti functions for virtual threads.
>
> Please note that some tests are still not updated because it requires
> significant efforts to redesign them. The goal is to update the only simple
> cases.
Leonid Mesnik has updated the pull request incrementally with two additional
commits since the last revision:
- updated doc for ThreadWrapper
- reverted some tests that can't be really run with virtual threads
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/30591/files
- new: https://git.openjdk.org/jdk/pull/30591/files/13f8b260..52cc86ad
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=30591&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=30591&range=00-01
Stats: 69 lines in 17 files changed: 12 ins; 20 del; 37 mod
Patch: https://git.openjdk.org/jdk/pull/30591.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/30591/head:pull/30591
PR: https://git.openjdk.org/jdk/pull/30591