RFR: 8247776: JFR: TestThreadContextSwitches.java failed "RuntimeException: No events: expected false, was true"

Erik Gahlin egahlin at openjdk.org
Mon Oct 6 17:36:22 UTC 2025


Could I have a review of a PR that retries if a Thread Context Switch Rate event is not emitted on Windows? This is similar to TestCPULoad.

Testing: 500 * jdk/jdk/jfr/event/TestThreadContextSwitches.java

Thanks
Erik

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

Commit messages:
 - Initial

Changes: https://git.openjdk.org/jdk/pull/27654/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27654&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8247776
  Stats: 20 lines in 1 file changed: 11 ins; 0 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/27654.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27654/head:pull/27654

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


More information about the hotspot-jfr-dev mailing list