[Mono-list] Re: bug report for new JIT

dietmar dietmar@ximian.com
09 Apr 2003 18:00:56 +0200


On Wed, 2003-04-09 at 17:27, Jeroen Frijters wrote:
> On Wednesday, April 09, 2003 16:31, dietmar wrote:
> > Interned strings are not collected because we store them 
> > inside a hash table which holds a reference.
> 
> Hmm. Most Java VMs (since 1.2) use weak references for the intern
> hashtable. I just did some test and it appears that the Microsoft .NET
> runtime doesn't collect interned strings.
> 
> What happens with interned strings when the AppDomain that interned them
> gets unloaded?

AFAIK we free the hash table, so they get collected.

- Dietmar