Re: [hibernate-dev] About Search's Threadlocal and memory leak: automatic listener registration

2008-12-28 Thread Emmanuel Bernard
On Dec 12, 2008, at 12:26, Sanne Grinovero wrote: Hi all, reading the code it appears the JIRA reporter is right: the static ThreadLocal is using a WeakHashMap but the value is holding a reference to the Configuration, which also happens to be the key. (see SearchConfigurationFromHibernateC

Re: [hibernate-dev] About Search's Threadlocal and memory leak: automatic listener registration

2008-12-28 Thread Emmanuel Bernard
On Dec 12, 2008, at 12:26, Sanne Grinovero wrote: Hi all, reading the code it appears the JIRA reporter is right: the static ThreadLocal is using a WeakHashMap but the value is holding a reference to the Configuration, which also happens to be the key. (see SearchConfigurationFromHibernateC