Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCompiler.cpp @ 12652:0dd597c6c9c7
fixed performance regression in hosted CompileTheWorld
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 01 Nov 2013 13:07:22 +0100 |
parents | b038b643a3a4 |
children | f6c511451e4a |
comparison
equal
deleted
inserted
replaced
12651:c73b857b1be9 | 12652:0dd597c6c9c7 |
---|---|
99 | 99 |
100 if (UseCompiler) { | 100 if (UseCompiler) { |
101 bool bootstrap = GRAALVM_ONLY(BootstrapGraal) NOT_GRAALVM(false); | 101 bool bootstrap = GRAALVM_ONLY(BootstrapGraal) NOT_GRAALVM(false); |
102 VMToCompiler::startCompiler(bootstrap); | 102 VMToCompiler::startCompiler(bootstrap); |
103 _initialized = true; | 103 _initialized = true; |
104 CompilationPolicy::completed_vm_startup(); | |
104 if (bootstrap) { | 105 if (bootstrap) { |
105 // We turn off CompileTheWorld and complete the VM startup so that | |
106 // Graal can be compiled by C1/C2 when we do a CTW. | |
107 NOT_PRODUCT(CompileTheWorld = false); | |
108 CompilationPolicy::completed_vm_startup(); | |
109 VMToCompiler::bootstrap(); | 106 VMToCompiler::bootstrap(); |
110 } | 107 } |
108 | |
109 | |
110 #ifndef PRODUCT | |
111 if (CompileTheWorld) { | |
112 // We turn off CompileTheWorld so that Graal can | |
113 // be compiled by C1/C2 when Graal does a CTW. | |
114 CompileTheWorld = false; | |
115 VMToCompiler::compileTheWorld(); | |
116 } | |
117 #endif | |
111 } | 118 } |
112 } | 119 } |
113 } | 120 } |
114 | 121 |
115 void GraalCompiler::deopt_leaf_graph(jlong leaf_graph_id) { | 122 void GraalCompiler::deopt_leaf_graph(jlong leaf_graph_id) { |