Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalCompiler.cpp @ 13363:5c891b2983c5
improved comment explaining why CompileTheWorld is set to false during bootstrapping
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 17 Dec 2013 16:43:52 +0100 |
parents | 0e5c4f9fa9a5 |
children | 430c9f08728d |
comparison
equal
deleted
inserted
replaced
13362:9fd85def8368 | 13363:5c891b2983c5 |
---|---|
114 if (bootstrap) { | 114 if (bootstrap) { |
115 // Avoid -Xcomp and -Xbatch problems by turning on interpreter and background compilation for bootstrapping. | 115 // Avoid -Xcomp and -Xbatch problems by turning on interpreter and background compilation for bootstrapping. |
116 FlagSetting a(UseInterpreter, true); | 116 FlagSetting a(UseInterpreter, true); |
117 FlagSetting b(BackgroundCompilation, true); | 117 FlagSetting b(BackgroundCompilation, true); |
118 #ifndef PRODUCT | 118 #ifndef PRODUCT |
119 // Turn off CompileTheWorld during bootstrap | 119 // Turn off CompileTheWorld during bootstrap so that a counter overflow event |
120 // so that a complete bootstrap occurs | 120 // triggers further compilation (see NonTieredCompPolicy::event()) hence |
121 // allowing a complete bootstrap | |
121 FlagSetting c(CompileTheWorld, false); | 122 FlagSetting c(CompileTheWorld, false); |
122 #endif | 123 #endif |
123 VMToCompiler::bootstrap(); | 124 VMToCompiler::bootstrap(); |
124 } | 125 } |
125 | 126 |