# HG changeset patch # User Christian Humer # Date 1414689165 -3600 # Node ID 546cfe7a19b65f029db7b2316ef007a67b7ff31b # Parent 16757e473b36bd924218c2a263cdcb4be2de3a2b Truffle: add getQueuedCallTargets to GraalTruffleRuntime. diff -r 16757e473b36 -r 546cfe7a19b6 graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime.java --- a/graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime.java Tue Oct 28 14:29:16 2014 +0100 +++ b/graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime.java Thu Oct 30 18:12:45 2014 +0100 @@ -259,6 +259,11 @@ } @Override + public Collection getQueuedCallTargets() { + return compilations.keySet().stream().filter(e -> !compilations.get(e).isDone()).collect(Collectors.toList()); + } + + @Override public boolean isCompiling(OptimizedCallTarget optimizedCallTarget) { Future codeTask = this.compilations.get(optimizedCallTarget); if (codeTask != null) { diff -r 16757e473b36 -r 546cfe7a19b6 graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/GraalTruffleRuntime.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/GraalTruffleRuntime.java Tue Oct 28 14:29:16 2014 +0100 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/GraalTruffleRuntime.java Thu Oct 30 18:12:45 2014 +0100 @@ -224,6 +224,8 @@ getCompilationNotify().notifyShutdown(this); } + public abstract Collection getQueuedCallTargets(); + public abstract Replacements getReplacements(); public abstract void compile(OptimizedCallTarget optimizedCallTarget, boolean mayBeAsynchronous);