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

JNI local references and garbage collection

Every thread has a runtime stack that includes a frame for each method call. From a GC perspective, every stack establishes a thread-specific "root set" including the union of all JNI local references in the stack.

Each method call in a running VM adds (pushes) a frame onto the stack, just as every return removes (pops) a frame. Each call point in a running stack can be characterized as one of the following types:

You can only perform an N2J transition in a thread that meets the following conditions:


See

  1. J2J and N2N transitions
  2. N2J transitions
  3. J2N calls
  4. J2N returns


Parent: The JNI and the Garbage Collector

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.