Class CompilationTask
java.lang.Object
com.oracle.truffle.runtime.AbstractCompilationTask
com.oracle.truffle.runtime.CompilationTask
- All Implemented Interfaces:
com.oracle.truffle.compiler.TruffleCompilationTask, Comparable<CompilationTask>, Callable<Void>
public final class CompilationTask
extends AbstractCompilationTask
implements Callable<Void>, Comparable<CompilationTask>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSinceBackgroundCompileQueueuses aThreadPoolExecutorto run compilations, and since the executor expects eachCallable(in our case, theCompilationTask) to be converted into aFutureTaskwe use this wrapper around theCompilationTaskjust for compatibility with the executor. -
Method Summary
Methods inherited from class AbstractCompilationTask
addInlinedTarget, addTargetToDequeue, countCalls, countInlinedCalls, dequeueTargets, getDebugProperties, getInlining, getPosition, inlinedTargets, setCallCountsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.compiler.TruffleCompilationTask
isFirstTier, tier
-
Method Details
-
awaitCompletion
public void awaitCompletion(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException -
awaitCompletion
-
cancel
public boolean cancel() -
finished
public void finished() -
start
public boolean start() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfacecom.oracle.truffle.compiler.TruffleCompilationTask
-
isLastTier
public boolean isLastTier()- Specified by:
isLastTierin interfacecom.oracle.truffle.compiler.TruffleCompilationTask
-
hasNextTier
public boolean hasNextTier()- Specified by:
hasNextTierin interfacecom.oracle.truffle.compiler.TruffleCompilationTask
-
getFuture
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<CompilationTask>
-
call
-
bonusDescriptors
-
targetHighestCompiledTier
public int targetHighestCompiledTier() -
time
public long time() -
weight
public double weight() -
rate
public double rate() -
queueChange
public int queueChange()
-