On Mon, 6 Apr 2026 18:02:53 GMT, Leonid Mesnik <[email protected]> wrote:

> 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.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 2b716d7b
Author:    Leonid Mesnik <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/2b716d7b32d745fa135f479c5a236517e87014e2
Stats:     489 lines in 61 files changed: 340 ins; 0 del; 149 mod

8381658: Update nsk/jvmti/scenarios/sampling to better test virtual threads

Reviewed-by: cjplummer, sspitsyn

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

PR: https://git.openjdk.org/jdk/pull/30591

Reply via email to