Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime.java @ 18212:546cfe7a19b6
Truffle: add getQueuedCallTargets to GraalTruffleRuntime.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 30 Oct 2014 18:12:45 +0100 |
parents | 62de94d5cf73 |
children | 1f3ab088d958 |
comparison
equal
deleted
inserted
replaced
18211:16757e473b36 | 18212:546cfe7a19b6 |
---|---|
257 } | 257 } |
258 } | 258 } |
259 } | 259 } |
260 | 260 |
261 @Override | 261 @Override |
262 public Collection<OptimizedCallTarget> getQueuedCallTargets() { | |
263 return compilations.keySet().stream().filter(e -> !compilations.get(e).isDone()).collect(Collectors.toList()); | |
264 } | |
265 | |
266 @Override | |
262 public boolean isCompiling(OptimizedCallTarget optimizedCallTarget) { | 267 public boolean isCompiling(OptimizedCallTarget optimizedCallTarget) { |
263 Future<?> codeTask = this.compilations.get(optimizedCallTarget); | 268 Future<?> codeTask = this.compilations.get(optimizedCallTarget); |
264 if (codeTask != null) { | 269 if (codeTask != null) { |
265 if (codeTask.isCancelled() || codeTask.isDone()) { | 270 if (codeTask.isCancelled() || codeTask.isDone()) { |
266 this.compilations.remove(optimizedCallTarget); | 271 this.compilations.remove(optimizedCallTarget); |