db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Bengtson <e...@jpox.org>
Subject Re: classes registered in JDOImplHelper unloaded
Date Mon, 06 Mar 2006 16:25:19 GMT
Let me rewrite in English ;)


If applications using short lived classloaders register PC classes, and later on
these classloaders are released. Classes should be GC together with the
classloaders, but the JDOImplHelper is holding strong references to these

What is the strategy to take to avoid a memory leak in JDOImplHelper?


Quoting Erik Bengtson <erik@jpox.org>:

> Hi,
> What happens if the classes registered in a JDOImplHelper are unloaded or if
> an
> attempt to GC the classloader?
> Later on the same class loaded by a second classloader, third, forth and so
> on?
> Is there a memory leak here since the classloader will not be garbage collect
> the classes as we have a strong references to the classes?
> Regards,
> Erik Bengtson

View raw message