Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotCodeCacheProvider.java @ 15463:a20be10ad437
made Graal work with the HotSpot compiler queue and compiler threads, enabled by -XX:-UseGraalCompilationQueue
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 02 May 2014 00:36:27 +0200 |
parents | f419db49a54e |
children | e3f3233ec6cd |
comparison
equal
deleted
inserted
replaced
15462:05d3f069cff2 | 15463:a20be10ad437 |
---|---|
204 Debug.log("%s", disassemble(installedCode)); | 204 Debug.log("%s", disassemble(installedCode)); |
205 } | 205 } |
206 return installedCode; | 206 return installedCode; |
207 } | 207 } |
208 | 208 |
209 public InstalledCode installMethod(HotSpotResolvedJavaMethod method, CompilationResult compResult) { | 209 public InstalledCode installMethod(HotSpotResolvedJavaMethod method, CompilationResult compResult, long ctask) { |
210 if (compResult.getId() == -1) { | 210 if (compResult.getId() == -1) { |
211 compResult.setId(method.allocateCompileId(compResult.getEntryBCI())); | 211 compResult.setId(method.allocateCompileId(compResult.getEntryBCI())); |
212 } | 212 } |
213 HotSpotInstalledCode installedCode = new HotSpotNmethod(method, compResult.getName(), true); | 213 HotSpotInstalledCode installedCode = new HotSpotNmethod(method, compResult.getName(), true); |
214 runtime.getCompilerToVM().installCode(new HotSpotCompiledNmethod(target, method, compResult), installedCode, method.getSpeculationLog()); | 214 runtime.getCompilerToVM().installCode(new HotSpotCompiledNmethod(target, method, compResult, ctask), installedCode, method.getSpeculationLog()); |
215 return logOrDump(installedCode, compResult); | 215 return logOrDump(installedCode, compResult); |
216 } | 216 } |
217 | 217 |
218 @Override | 218 @Override |
219 public InstalledCode addMethod(ResolvedJavaMethod method, CompilationResult compResult, SpeculationLog log, InstalledCode predefinedInstalledCode) { | 219 public InstalledCode addMethod(ResolvedJavaMethod method, CompilationResult compResult, SpeculationLog log, InstalledCode predefinedInstalledCode) { |
234 } | 234 } |
235 | 235 |
236 @Override | 236 @Override |
237 public InstalledCode setDefaultMethod(ResolvedJavaMethod method, CompilationResult compResult) { | 237 public InstalledCode setDefaultMethod(ResolvedJavaMethod method, CompilationResult compResult) { |
238 HotSpotResolvedJavaMethod hotspotMethod = (HotSpotResolvedJavaMethod) method; | 238 HotSpotResolvedJavaMethod hotspotMethod = (HotSpotResolvedJavaMethod) method; |
239 return installMethod(hotspotMethod, compResult); | 239 return installMethod(hotspotMethod, compResult, 0L); |
240 } | 240 } |
241 | 241 |
242 public HotSpotNmethod addExternalMethod(ResolvedJavaMethod method, CompilationResult compResult) { | 242 public HotSpotNmethod addExternalMethod(ResolvedJavaMethod method, CompilationResult compResult) { |
243 HotSpotResolvedJavaMethod javaMethod = (HotSpotResolvedJavaMethod) method; | 243 HotSpotResolvedJavaMethod javaMethod = (HotSpotResolvedJavaMethod) method; |
244 if (compResult.getId() == -1) { | 244 if (compResult.getId() == -1) { |