diff 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
line wrap: on
line diff
--- 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<OptimizedCallTarget> 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) {