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

JNI local refs exceeds capacity warning in NetworkInterface::getAll

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • 8, 11, 17, 20
    • core-libs
    • b18
    • windows

    Description

      JDK-8187450 half-fixed the issue on Windows; the warning is now absent when running with -Djava.net.preferIPv4Stack=true, but still present otherwise.

      Example test output from test\jdk\java\net\NetworkInterface\Test.java:

      WARNING: JNI local refs: 33, exceeds capacity: 32
      at java.net.NetworkInterface.getAll(java.base@20-internal/Native Method)
      at java.net.NetworkInterface.getNetworkInterfaces(java.base@20-internal/NetworkInterface.java:353)
      at Test.main(Test.java:42)
      ...

      Attachments

        Issue Links

          Activity

            People

              djelinski Daniel Jelinski
              djelinski Daniel Jelinski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: