[gclist] GC and JNI
David Detlefs - Sun Microsystems Labs BOS
David Detlefs <david.detlefs@sun.com>
Mon, 14 Jul 2003 08:55:05 -0400
Okehee --
You should think of JNI handles as exactly analogous to programming
language variables; they are a stylized convention for declaring local
or global variables. The stylized convention allows the JNI
implementation to keep track of which variables are live when a
garbage collection occurs, and allows the JNI implementation to
iterate over these live variables for the garbage collector.
In particular, JNI local variables are taken out of the set of live
JNI variables when the method in which they are declared returns, just
as with a normal local variable of a programming language.
I hope this helps...
--
============================================= AntiSpamString: nix flubber now
=============================================================================
Dave Detlefs http://www.sunlabs.com/people/detlefs/
Sun Microsystems Laboratories david.detlefs@sun.com
1 Network Drive, Burlington, MA 01803-0902 (781)-442-0841