Mercurial > hg > graal-compiler
diff src/share/vm/graal/graalCompiler.cpp @ 15603:b7fb36e57da8
made Graal initialization be driven from Java to simplify sequencing and synchronization
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 12 May 2014 23:27:07 +0200 |
parents | 063ec2920d21 |
children | 66a9286203a2 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp Mon May 12 22:37:26 2014 +0200 +++ b/src/share/vm/graal/graalCompiler.cpp Mon May 12 23:27:07 2014 +0200 @@ -48,8 +48,6 @@ return; } - GraalRuntime::initialize(); - BufferBlob* buffer_blob = GraalRuntime::initialize_buffer_blob(); if (!UseGraalCompilationQueue) { // This path is used for initialization both by the native queue and the graal queue @@ -68,7 +66,11 @@ bool bootstrap = UseGraalCompilationQueue && (FLAG_IS_DEFAULT(BootstrapGraal) ? !TieredCompilation : BootstrapGraal); VMToCompiler::startCompiler(bootstrap); _started = true; + + // Graal is considered as application code so we need to + // stop the VM deferring compilation now. CompilationPolicy::completed_vm_startup(); + if (bootstrap) { // Avoid -Xcomp and -Xbatch problems by turning on interpreter and background compilation for bootstrapping. FlagSetting a(UseInterpreter, true);