Skip to content

Commit

Permalink
Merge pull request quarkusio#38771 from SpaceFox/38721_virtualthreadunit
Browse files Browse the repository at this point in the history
  • Loading branch information
cescoffier authored Feb 15, 2024
2 parents 05b4c23 + 2b3e071 commit 754f4e4
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@

/**
* Extends the test case to detect pinned carrier thread.
* <br/>
* <br/>
* <b>Implementation notes:</b> current implementation uses JFR under the hood, with two consequences:
* <ol>
* <li>This test won’t work on JVM without JFR support, e.g. OpenJ9.</li>
* <li>Each test that uses this annotation is several seconds longer than versions without it.</li>
* </ol>
* This annotation uses JFR recording to detect pinning and analyze when a specific event is fired.
* Unfortunately, to ensure no events are missed, the test must ensure the JFR recording is on and off.
* It fires a mock event and wait until it read it.
* Due to JFR recording API limitations, it takes a lot of time to do these loops as there are many file reads.
* This adds several seconds to start and to stop to each test with pinned carrier thread detection enabled; and this
* additional work is mandatory to avoid missing event.
* <br/>
* This behaviour is not part of API and may change in future version.
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
Expand Down

0 comments on commit 754f4e4

Please sign in to comment.