JDK-8294115 : JNI local refs exceeds capacity warning in NetworkInterface::getAll
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8,11,17,20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2022-09-21
  • Updated: 2022-10-03
  • Resolved: 2022-09-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 20
20 masterFixed
Related Reports
Relates :  
Relates :  
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)
...
Comments
Changeset: 9dce8652 Author: Daniel JeliƄski <djelinski@openjdk.org> Date: 2022-09-30 06:00:37 +0000 URL: https://git.openjdk.org/jdk/commit/9dce8652f258ba88f17aa315af529c79bb8a41cf
30-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10377 Date: 2022-09-21 15:37:24 +0000
21-09-2022