-
Bug
-
Resolution: Fixed
-
P3
-
17
-
b15
As per the Java Native Interface Specification: "All Java objects returned by JNI functions are local references." [1].
The get/set-InetXXAddress-member helper functions in net_util.c retrieve a local reference to the internal `holder` before operating on the InetAddress object. These functions are used in many places by the native code, and should release any local references before returning.
[1] https://docs.oracle.com/en/java/javase/16/docs/specs/jni/design.html#global-and-local-references
The get/set-InetXXAddress-member helper functions in net_util.c retrieve a local reference to the internal `holder` before operating on the InetAddress object. These functions are used in many places by the native code, and should release any local references before returning.
[1] https://docs.oracle.com/en/java/javase/16/docs/specs/jni/design.html#global-and-local-references
- duplicates
-
JDK-8261719 NetworkInterface.getAll() exceeds jni localref capacity when using -Xcheck:jni
-
- Closed
-
- relates to
-
JDK-8187450 JNI local refs exceeds capacity warning in NetworkInterface::getAll
-
- Resolved
-