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

Marked as reviewed by jpai (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/14884#pullrequestreview-1530046120

Reply via email to