[Biojava-dev] memory leak

mark.schreiber at group.novartis.com mark.schreiber at group.novartis.com
Thu Jan 27 00:25:39 EST 2005


>    synchronized(this) {
>      growIfNecessary();
>      types[listenerCount] = ct;
>      listeners[listenerCount] = new WeakReference(cl);
>      listenerCount++;
>    }


This may be the source of the problem. The thing the WeakReference points 
to is released when memory runs low but a reference to the WeakReference 
is being maintained (possibly in the listeners[]).

- Mark


More information about the biojava-dev mailing list