Re: #CompileTimeDependencies and module resolution

2017-01-14 Thread Sander Mak
> On 13 Jan 2017, at 14:45, Alan Bateman wrote: > > >> : >> Alternatively, you can view optional dependency usage more like 'if the >> application already uses A, then Lib should also use A as well' in which >> case your suggested setup and the current implementation make total sense. >> Thi

Re: MethodHandle performance

2017-01-14 Thread Hontvári Attila
That makes the code simpler. The performance doesn't change. I've updated in place. 2017-01-14 15:53 keltezéssel, Remi Forax írta: Attila, you can use @Stable initialized with null instead of final when you declare the spreaderCache so you do not have to use Unsafe. Rémi - Mail original

Re: MethodHandle performance

2017-01-14 Thread Remi Forax
Attila, you can use @Stable initialized with null instead of final when you declare the spreaderCache so you do not have to use Unsafe. Rémi - Mail original - > De: "Hontvári Attila" > À: jigsaw-dev@openjdk.java.net > Envoyé: Samedi 14 Janvier 2017 13:56:58 > Objet: Re: MethodHandle per

Re: MethodHandle performance

2017-01-14 Thread Hontvári Attila
As an experiment I have reimplemented MethodHandle::invokeWithArguments, so it only generates a spreader on the first invocation, after that the spreader will be reused. Now it is 10 times faster, therefore it reaches the performance of reflection. If we don't pass primitive arguments, the perf

Re: Compiling Java 9 (take 2)

2017-01-14 Thread Stephan Herrmann
On 01/14/2017 02:38 AM, Alex Buckley wrote: On 1/13/2017 3:52 PM, Stephan Herrmann wrote: Speaking of which, I'm confused by these sentences: 7.2: "The host system is free to decide that a compilation unit containing a module declaration is not, in fact, associated with the module declared ther