RFR: JDK-8290839: jdk/jfr/event/compiler/TestJitRestart.java failed with "RuntimeException: No JIT restart event found: expected true, was false"

Matthias Baesken mbaesken at openjdk.org
Fri Jul 22 12:11:35 UTC 2022


In seldom cases the TestJitRestart.java JFR test failed because no Jitrestart event was seen in the test.
Dean Long suggested to change the test a bit "How about changing the test to look at CodeCacheFull, compilation, and JitRestart events. It can test that no compilation events happen after CodeCacheFull unless a JitRestart comes first. So it would be testing the order of events and not absolute counts."

So I adjusted the test (still succeeds after a JitRestart is seen, but in case it is not seen only fails in case of Compilation events after CodeCacheFull).

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

Commit messages:
 - Remove some whitespace
 - JDK-8290839

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

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


More information about the hotspot-jfr-dev mailing list