Is graal VM going to be part of a future JDK release?

Chris Seaton chris.seaton at oracle.com
Fri Mar 13 15:17:30 UTC 2015


Section 4.2 of this paper http://lampwww.epfl.ch/~hmiller/scala2013/resources/pdfs/paper9.pdf <http://lampwww.epfl.ch/~hmiller/scala2013/resources/pdfs/paper9.pdf> gives an overview of where Graal’s optimisations differ from C2. We call flow-sensitive EA ‘partial' EA.

However that’s using Graal as a normal Java VM. Truffle uses Graal directly in a way that it is not currently possible to use C2, so it’s a different question really. The benefits that we get from Graal, via the Truffle API, include very extensive specialisation of operators and core library methods, aggressive inlining, both at the runtime and guest language level, explicit loop unrolling, explicit code invalidation, and more.

Chris

> On 13 Mar 2015, at 15:01, Vitaly Davidovich <vitalyd at gmail.com> wrote:
> 
> Chris (or anyone else really),
> 
> Are there any optimizations that graal does better (or at all) than Hotspot's C2? I know it has flow sensitive EA - are there other things?
> 
> Thanks
> 
> sent from my phone
> 
> On Mar 13, 2015 9:53 AM, "Chris Seaton" <chris.seaton at oracle.com <mailto:chris.seaton at oracle.com>> wrote:
> Hi Bráulio,
> 
> There’s no specific date yet of when Graal might be integrated into OpenJDK.
> 
> You can of course install a binary build of GraalVM, which isn’t much different from installing an OpenJDK build http://lafo.ssw.uni-linz.ac.at/builds <http://lafo.ssw.uni-linz.ac.at/builds> <http://lafo.ssw.uni-linz.ac.at/builds <http://lafo.ssw.uni-linz.ac.at/builds>>. For the specific use case of JRuby, the ruby-build plugin to rbenv can already install JRuby+Truffle, with GraalVM bundled so all you have to do is run ‘run’ and you’ll get Graal.
> 
> $ rbenv install jruby-9.0.0.0+graal-dev
> $ rbenv shell jruby-9.0.0.0+graal-dev
> $ ruby -X+T -e 'puts Truffle.graal?'
> true
> 
> I think you can do something similar in RVM but not sure of the specifics at the moment.
> 
> If you are interested in JRuby+Truffle, join us in #jruby on Freenode IRC.
> 
> Regards,
> 
> Chris
> 
> > On 13 Mar 2015, at 00:45, Bráulio Bhavamitra <brauliobo at gmail.com <mailto:brauliobo at gmail.com>> wrote:
> >
> > Hello all,
> >
> > Sorry for asking this out of my anxiety...
> >
> > Having seen the incredible results when using the Graal VM with JRuby
> > Truffle, I wonder if and when Graal code will be merged into OpenJDK
> > mainline. Is there a roadmap or it is not going to happen soon (next years)?
> >
> > cheers,
> > bráulio
> >
> > --
> > "Lute pela sua ideologia. Seja um com sua ideologia. Viva pela sua
> > ideologia. Morra por sua ideologia" P.R. Sarkar
> >
> > EITA - Educação, Informação e Tecnologias para Autogestão
> > http://cirandas.net/brauliobo <http://cirandas.net/brauliobo>
> > http://eita.org.br <http://eita.org.br/>
> >
> > "Paramapurusha é meu pai e Parama Prakriti é minha mãe. O universo é meu
> > lar e todos nós somos cidadãos deste cosmo. Este universo é a imaginação da
> > Mente Macrocósmica, e todas as entidades estão sendo criadas, preservadas e
> > destruídas nas fases de extroversão e introversão do fluxo imaginativo
> > cósmico. No âmbito pessoal, quando uma pessoa imagina algo em sua mente,
> > naquele momento, essa pessoa é a única proprietária daquilo que ela
> > imagina, e ninguém mais. Quando um ser humano criado mentalmente caminha
> > por um milharal também imaginado, a pessoa imaginada não é a propriedade
> > desse milharal, pois ele pertence ao indivíduo que o está imaginando. Este
> > universo foi criado na imaginação de Brahma, a Entidade Suprema, por isso
> > a propriedade deste universo é de Brahma, e não dos microcosmos que também
> > foram criados pela imaginação de Brahma. Nenhuma propriedade deste mundo,
> > mutável ou imutável, pertence a um indivíduo em particular; tudo é o
> > patrimônio comum de todos."
> > Restante do texto em
> > http://cirandas.net/brauliobo/blog/a-problematica-de-hoje-em-dia <http://cirandas.net/brauliobo/blog/a-problematica-de-hoje-em-dia>
> 



More information about the graal-dev mailing list