Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263461

jdk/jfr/event/gc/detailed/TestEvacuationFailedEvent.java uses wrong mechanism to cause evacuation failure

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b04
    • CPU:
      x86_64
    • OS:
      linux

      Backports

        Description

        The following test failed in the JDK17 CI:

        jdk/jfr/event/gc/detailed/TestEvacuationFailedEvent.java

        Here's a snippet from the log file:

        ----------System.err:(15/931)----------
        java.lang.RuntimeException: No events: expected false, was true
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertFalse(Asserts.java:461)
        at jdk.test.lib.jfr.Events.hasEvents(Events.java:161)
        at jdk.jfr.event.gc.detailed.TestEvacuationFailedEvent.main(TestEvacuationFailedEvent.java:66)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:831)

        JavaTest Message: Test threw exception: java.lang.RuntimeException
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: No events: expected false, was true

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                tschatzl Thomas Schatzl
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: