From: Arno P. <ar...@pu...> - 2010-03-25 13:45:23
|
>>> Java is supposed to have weak references, isn't it? >>> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ref/WeakReference.html >>> So if you expose them to Java as the spec describes, it should just >>> be a good thing and make even more Java code work with XMLVM. >>> >>> --tml > > > It seems that this was much easier than what I originally thought. > In parallel I have created a mechanism to store variables of category objects (or any other object anyway), since by definition in a category you won't be able to store other variables. > This is useful to clean up a bit with retained delegates that nobody releases them (and yes, I believe this code has less memory leaks than ever!) > > Probably I should take down my old patch and release a new patch, with this improved memory management issues. > > What others (i.e. the xmlvm team) think? gimme, gimme! :-) These are two different things: support for weak references and allowing additional state information for categories. Both would be extremely useful! Arno |