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

Xcheck:jni warnings during JFR initialization

    XMLWordPrintable

Details

    • jfr
    • b01

    Description

      These "benign" warnings can significantly complicate troubleshooting customer issues.

      ===
      /java/jdk1.8.0_321/bin/java -Xcheck:jni -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -version
      WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethod
              at jdk.internal.instrumentation.Tracer.retransformClasses0(Native Method)
              at jdk.internal.instrumentation.Tracer.addInstrumentations(Tracer.java:213)
              - locked <0x000000076dedf090> (a jdk.internal.instrumentation.Tracer)
              at oracle.jrockit.jfr.VMJFR.instrument(VMJFR.java:453)
              at oracle.jrockit.jfr.JFR.init(JFR.java:297)

      <...>

      WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethodV
              at java.lang.Object.getClass(Native Method)
              at java.security.AccessControlContext.<init>(AccessControlContext.java:255)
              at java.security.AccessController.createWrapper(AccessController.java:599)
              at java.security.AccessController.doPrivileged(AccessController.java:429)
              at oracle.jrockit.jfr.VMJFR.createJavaLangThreadForBufferthread(VMJFR.java:527)
      java version "1.8.0_321"
      Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
      Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
      $
      ===

      Attachments

        Activity

          People

            dbuck David Buck
            dbuck David Buck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: