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
Wed Jul 27 13:07:48 UTC 2022
On Mon, 25 Jul 2022 12:51:11 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
> There is no guarantee that events will arrive in the recording file in the same order they were committed. If the test depends on there order(?), the events should be sorted, i.e. events.sort(Comparator.comparing(RecordedEvent::getEndTime)).
Yes the order is important. However sorting using getEndTime leads to alot of errors, 50% of test runs fail this way (makes things worse) because we seem to have compilation events with end time later than the jdk.CodeCacheFull event.
However sorting using getStartTime seems to work well.
-------------
PR: https://git.openjdk.org/jdk/pull/9612
More information about the hotspot-jfr-dev
mailing list