Re: ClassValue rooting objects after it goes away?

2015-08-26 Thread 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 you can reproduce your bug or not with this

Re: What can we improve in JSR292 for Java 9?

2015-08-26 Thread Rémi Forax
Hi John, comment inlined Le 26 août 2015 00:30:00 CEST, John Rose john.r.r...@oracle.com a écrit : On Feb 25, 2015, at 6:29 PM, John Rose john.r.r...@oracle.com wrote: Maybe this is general enough: MHs.loop(init, predicate, body)(*a) = { let i = init(*a); while (predicate(i, *a)) { i

Re: ClassValue rooting objects after it goes away?

2015-08-26 Thread Jochen Theodorou
Am 07.08.2015 13:04, schrieb Michael Haupt: Hi Charles, the pull request mentions a class named Java7ClassValue - does this mean it's a Java 7 issue or is it reproducible on 8 and maybe even 9? Names can be misleading. ;-) To clarify: by what means is the ClassValue removed in the JRuby

Re: What can we improve in JSR292 for Java 9?

2015-08-26 Thread John Rose
On Aug 26, 2015, at 6:06 AM, Rémi Forax fo...@univ-mlv.fr wrote: it's less powerful but it seems you can encode all your examples of loops too. No, I don't think so. Multiple pred/fini pairs implement multiple loop exits. Any loop with an if-return in it has an exit distinct from the loop's

Re: What can we improve in JSR292 for Java 9?

2015-08-26 Thread Remi Forax
yes, you're right, so if think i prefer to 'allow a free intermixing of any number of steps (var updates) with any other number of pred/fini pairs' which requires less brain power to understand that the double encoding you are proposing :) Something like: public interface InnerLoopBuilder {