TestObjectDescription.java intermittent fails Unable to replace class name

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 27
    • Component/s: hotspot
    • Environment:
    • jfr
    • x86_64
    • linux

      jdk/jfr/event/oldobject/TestObjectDescription.java intermittent fails Unable to replace class name. Failure probability about 1/50.

      The test log snippet:
      Iteration: 2002
      Could not find object description containing text "Class Name: jdk.jfr.event.oldobject.TestClassLoader$TestClass"
      Found descriptions:
      Class Name: jdk.jfr.event.oldobject.TestObjectDescription
      Size: 99900

      Iteration: 2003
      ----------System.err:(19/1400)----------
      java.lang.AssertionError: String lengths don't match. Unable to replace class name
      at jdk.jfr.event.oldobject.TestClassLoader.loadClass(TestClassLoader.java:69)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:502)
      at java.base/java.lang.Class.forName0(Native Method)
      at java.base/java.lang.Class.forName(Class.java:560)
      at jdk.jfr.event.oldobject.TestClassLoader.loadClasses(TestClassLoader.java:53)
      at jdk.jfr.event.oldobject.TestObjectDescription.lambda$testClassName$0(TestObjectDescription.java:113)
      at jdk.jfr.event.oldobject.TestObjectDescription.asseertObjectDescription(TestObjectDescription.java:163)
      at jdk.jfr.event.oldobject.TestObjectDescription.testClassName(TestObjectDescription.java:110)
      at jdk.jfr.event.oldobject.TestObjectDescription.main(TestObjectDescription.java:84)

            Assignee:
            Unassigned
            Reporter:
            Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: