IBM User Guide for Java V7 on Windows > IBM SDK for Java > The Java Native Interface (JNI) > The JNI and the Garbage Collector > JNI transitions



J2N returns

When native code returns to Java™, the associated JNI local reference "root set", created by the J2N call, is released.

If the JNI local reference was the only reference to an object, the object is no longer reachable and can be considered for garbage collection. Garbage collection is triggered automatically by this condition, which simplifies memory management for the JNI programmer.


Parent: JNI transitions








Error 404 - Not Found

Error 404 - Not Found

The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.