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

-Xcheck:jni improvements to exception checking and excessive local refs

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b22
    • generic
    • generic

        Summary of enhancements to checked JNI after a number mail discussions and related bugs:

        1) Checked JNI to enforce calling "ExceptionOccurred()" or "ExceptionOccurred()" after using "Call*Method()" functions, before using further JNI functions. Warn if exception check not carried out before calling a method that does not allow pending exceptions. Subtle difference to the current "there is a pending exception" check, does the programmer actual call one of the check functions.

        2) If a JNI method implicitly grew the local ref capacity beyond what was planned for, warn the user. This of course excludes PushLocalFrame or EnsureLocalCapacity.

              dsimms David Simms
              dsimms David Simms
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: