# HG changeset patch # User Thomas Wuerthinger # Date 1397770860 -7200 # Node ID 3e6cbf84304005148231f7157f5ec7a9f16046ec # Parent 24dbd4a594903569f24d87b20bf173452ceddcd0 Truffle: Fixed a bug causing compilation not be cleared from the Truffle queue. diff -r 24dbd4a59490 -r 3e6cbf843040 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 Thu Apr 17 23:29:11 2014 +0200 +++ b/graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotTruffleRuntime.java Thu Apr 17 23:41:00 2014 +0200 @@ -315,7 +315,7 @@ public boolean cancelInstalledTask(OptimizedCallTarget optimizedCallTarget) { Future codeTask = this.compilations.get(optimizedCallTarget); if (codeTask != null && isCompiling(optimizedCallTarget)) { - this.compilations.remove(codeTask); + this.compilations.remove(optimizedCallTarget); return codeTask.cancel(true); } return false;