Re: ClassValue rooting objects after it goes away?

2015-08-27 Thread Jochen Theodorou
Hi, In trying to reproduce the problem outside of Groovy I stumbled over a case case which I think should work public class MyClassValue extends ClassValue { protected Object computeValue(Class type) { Dummy ret = new Dummy(); Dummy.l.add (this); return ret; }

Re: ClassValue rooting objects after it goes away?

2015-08-27 Thread Jochen Theodorou
One more thing... Remi, I tried your link with my simplified scenario and it does there not stop the collection of the classloader Am 27.08.2015 11:54, schrieb Jochen Theodorou: Hi, In trying to reproduce the problem outside of Groovy I stumbled over a case case which I think should work

Re: ClassValue rooting objects after it goes away?

2015-08-27 Thread Jochen Theodorou
Am 27.08.2015 00:54, schrieb Remi Forax: Hi Jochen, what you can try is to use this code written by Jerome Pilliet as replacement of ClassValue (using -Xbootclasspath/p) https://bitbucket.org/jpilliet/libcore-292/src/tip/libdvm/src/main/java/java/lang/ClassValue.java?at=4.4.3.292 to see if