JDK-8273206 : jdk/jfr/event/gc/collection/TestG1ParallelPhases.java fails after JDK-8159979
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-08-31
  • Updated: 2021-09-02
  • Resolved: 2021-09-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 b13Fixed
Related Reports
Relates :  
Description
JDK-8273206 added new JFR events for phases that the test does not expect and crashes with:

STDERR:
java.lang.RuntimeException: Compare events expected and received, Not found phases: , Not expected phases: CLDClearClaimedMarks, NoteStartOfMark, ResetMarkingState: expected true, was false
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
        at jdk.jfr.event.gc.collection.TestG1ParallelPhases.main(TestG1ParallelPhases.java:136)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Compare events expected and received, Not found phases: , Not expected phases: CLDClearClaimedMarks, NoteStartOfMark, ResetMarkingState: expected true, was false
JavaTest Message: shutting down test
Comments
The fix for this bug was integrated in jdk-18+13-677.
01-09-2021

Changeset: f1c5e26e Author: Jie Fu <jiefu@openjdk.org> Date: 2021-09-01 07:55:20 +0000 URL: https://git.openjdk.java.net/jdk/commit/f1c5e26e48ca2db0fc2b7ad2cf1bda4853bdeea9
01-09-2021

Here's a log file snippet for the jdk-18+13-664-tier5 sighting on linux-x64: jdk/jfr/event/gc/collection/TestG1ParallelPhases.java ----------System.err:(15/1370)---------- java.lang.RuntimeException: Compare events expected and received, Not found phases: , Not expected phases: CLDClearClaimedMarks, NoteStartOfMark, ResetMarkingState: expected true, was false at jdk.test.lib.Asserts.fail(Asserts.java:594) at jdk.test.lib.Asserts.assertTrue(Asserts.java:486) at jdk.jfr.event.gc.collection.TestG1ParallelPhases.main(TestG1ParallelPhases.java:136) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:833) JavaTest Message: Test threw exception: java.lang.RuntimeException: Compare events expected and received, Not found phases: , Not expected phases: CLDClearClaimedMarks, NoteStartOfMark, ResetMarkingState: expected true, was false JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Compare events expected and received, Not found phases: , Not expected phases: CLDClearClaimedMarks, NoteStartOfMark, ResetMarkingState: expected true, was false ----------rerun:(53/9412)*----------
01-09-2021