-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chuck,
On 10/9/2009 7:14 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: tomcat 5.5.25 shared lib and sharing webapp jars >> >> The webapp itself is irrelevant. A java.lang.Class object (and >> therefore any code, static members, etc.) can only be dumped from >> memory when the ClassLoader that loaded it is not referenced by any >> live object and no live objects are referring to it. > > That is not true; classes can be unloaded when all instances of the > class are unreachable. There's no requirement that the ClassLoader > associated with the class not be reachable. You can experiment with > the standard system classloader to verify this. What about classes with mutable static members? These members should be preserved for a while, right? Does this mean that classic Java singletons are never able to be GC'd because they have a private static member that points to an instance of the Class that cannot be cleared? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrP4S0ACgkQ9CaO5/Lv0PBgHwCgq3WvuUS9kr3Cl9ptdqVioZQG zqQAn3RKp3Ki9IOy4rJ7OKVAb/GF4VFY =UuSk -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org