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.

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

Commit messages:
 - more jvmti scenarious tests updated
 - copyrights updated
 - tests updated

Changes: https://git.openjdk.org/jdk/pull/30591/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30591&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8381658
  Stats: 529 lines in 77 files changed: 348 ins; 0 del; 181 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

Reply via email to