Re: GC and JNI
David Detlefs - Sun Microsystems Labs BOS <[email protected]> Mon, 14 Jul 2003 08:55:05 -0400
| Newsgroups | gmane.comp.programming.garbage-collection.general |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] 1 Network Drive, Burlington, MA 01803-0902 (781)-442-0841