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

Test jdk/jfr/jvm/TestPrimitiveClasses.java fails with -Xcomp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 24
    • hotspot
    • None
    • jfr

      Test
      jdk/jfr/jvm/TestPrimitiveClasses.java
      somtimes fails with Xcomp, with C1-only/C2

      The log says that Event is empty:
      jdk.jfr.jvm.TestPrimitiveClasses$MyEvent {
        startTime = 19:13:39.110 (2024-09-25)
        booleanClass = N/A
        charClass = N/A
        floatClass = N/A
        doubleClass = N/A
        byteClass = N/A
        shortClass = N/A
        intClass = N/A
        longClass = N/A
        voidClass = N/A
        eventThread = "MainThread" (javaThreadId = 31)
        stackTrace = [
          jdk.jfr.jvm.TestPrimitiveClasses.main(String[]) line: 61
          jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Object, Object[]) line: 104
          java.lang.reflect.Method.invoke(Object, Object[]) line: 573
          com.sun.javatest.regtest.agent.MainWrapper$MainTask.run() line: 138
          java.lang.Thread.run() line: 1576
        ]
      }

      java.lang.NullPointerException: Cannot invoke "jdk.jfr.consumer.RecordedClass.getName()" because "<local3>" is null
      at jdk.jfr.jvm.TestPrimitiveClasses.testField(TestPrimitiveClasses.java:82)
      at jdk.jfr.jvm.TestPrimitiveClasses.main(TestPrimitiveClasses.java:67)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1576)


            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: