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

TestBiasedLockRevocationEvents fails while matching revoke events to VMOperation events

XMLWordPrintable

    • b20

      The test test/jdk/jdk/jfr/event/runtime/TestBiasedLockRevocationEvents.java failed
      Failure type: test assertion failed
      Where:
          // Match all revoke events to a corresponding VMOperation event
      for (RecordedEvent event : events) {
      if (event.getEventType().getName().equals(EventNames.BiasedLockRevocation)) {
                      Long safepointId = event.getValue("safepointId");
      String lockClass = ((RecordedClass)event.getValue("lockClass")).getName();
                      if (lockClass.equals(MyLock.class.getName())) {
      Asserts.assertTrue(vmOperationsSingle.contains(safepointId)); <<<========== This failed
                          revokeCount++;
                      }


      ================ Callstack
      ----------System.err:(17/1197)----------
      java.lang.RuntimeException: assertTrue: expected true, was false
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:472)
      at jdk.jfr.event.runtime.TestBiasedLockRevocationEvents.testRevocationSafepointIdCorrelation(TestBiasedLockRevocationEvents.java:303)
      at jdk.jfr.event.runtime.TestBiasedLockRevocationEvents.main(TestBiasedLockRevocationEvents.java:56)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:835)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: assertTrue: expected true, was false
      JavaTest Message: shutting down test

            pchilanomate Patricio Chilano Mateo
            mseledtsov Mikhailo Seledtsov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: