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

JNI local refs exceeds capacity warning in NetworkInterface::getAll

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b15

      Backports

        Description

        example using 8u122:
        ===
        $ cat NITest.java
        public class NITest {
            public static void main(String[] args) throws java.net.SocketException {
                java.net.NetworkInterface.getNetworkInterfaces();
            }
        }
        $ javac NITest.java
        $ java -Xcheck:jni NITest
        WARNING: JNI local refs: 33, exceeds capacity: 32
                at java.net.NetworkInterface.getAll(Native Method)
                at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:343)
                at NITest.main(NITest.java:5)
        ===

        While not a serious problem, this creates noise when we are trying to use Xcheck:jni to find real issues. It also prompts questions from users.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jdowland Jonathan Dowland
                Reporter:
                dbuck David Buck
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: