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

JFR TestBiasedLockRevocationEvents should ignore events unrelated to the test

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      jfr
    • Resolved In Build:
      b17

      Backports

        Description

        jib > ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Wrong thread id: expected 26 to equal 30
        jib > REASON: User specified action: run main/othervm jdk.jfr.event.runtime.TestBiasedLockRevocationEvents
        jib > TIME: 12.75 seconds
        jib > messages:
        jib > command: main jdk.jfr.event.runtime.TestBiasedLockRevocationEvents
        jib > reason: User specified action: run main/othervm jdk.jfr.event.runtime.TestBiasedLockRevocationEvents
        jib > Mode: othervm [/othervm specified]
        jib > Additional options from @modules: --add-modules jdk.jfr,java.management
        jib > elapsed time (seconds): 12.75
        jib > configuration:
        jib > Boot Layer
        jib > add modules: jdk.jfr java.management
        jib >
        jib > STDOUT:
        jib > STDERR:
        jib > java.lang.RuntimeException: Wrong thread id: expected 26 to equal 30
        jib > at jdk.test.lib.Asserts.fail(Asserts.java:594)
        jib > at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
        jib > at jdk.test.lib.jfr.Events.assertThread(Events.java:188)
        jib > at jdk.test.lib.jfr.Events.assertEventThread(Events.java:179)
        jib > at jdk.jfr.event.runtime.TestBiasedLockRevocationEvents.testSingleRevocation(TestBiasedLockRevocationEvents.java:120)
        jib > at jdk.jfr.event.runtime.TestBiasedLockRevocationEvents.main(TestBiasedLockRevocationEvents.java:50)
        jib > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        jib > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        jib > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        jib > at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        jib > at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
        jib > at java.base/java.lang.Thread.run(Thread.java:832)
        jib >
        jib > JavaTest Message: Test threw exception: java.lang.RuntimeException: Wrong thread id: expected 26 to equal 30
        jib > JavaTest Message: shutting down test
        jib >
        jib > STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Wrong thread id: expected 26 to equal 30

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rwestberg Robin Westberg
                  Reporter:
                  mgronlun Markus Grönlund
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: