On Fri, 14 Jul 2023 09:42:05 GMT, Alan Bateman <al...@openjdk.org> wrote:

> This is a test only update to a test for the JFR event 
> jdk.VirtualThreadPinned event. The test we added in JDK 19 does 3 sleeps, one 
> with a small duration, twice with a  long duration. The test enables the 
> event with a threshold of 500ms and expects there will be two events 
> recorded; no event for the sleep with the small duration. In extreme cases, 
> it's possible that the short sleep takes more than 500ms so an event is 
> recorded and the test fails. The test is changed to drop the threshold, it's 
> not needed. It's also changed to explicitly park to avoid the long sleeps. A 
> drive-by change is to print the events to System.err rather than System.out 
> so they are inlined with the JUnit output (the original test was TestNG where 
> the output went to System.out).

This pull request has now been integrated.

Changeset: 0d2196f8
Author:    Alan Bateman <al...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/0d2196f8e5b03577a14ff97505718f4fa53f3792
Stats:     42 lines in 1 file changed: 19 ins; 2 del; 21 mod

8311992: Test java/lang/Thread/virtual/JfrEvents::testVirtualThreadPinned failed

Reviewed-by: jpai

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

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

Reply via email to