public final class CompilationTask extends Object implements TruffleCompilationTask, Callable<Void>, Comparable<CompilationTask>
| Modifier and Type | Class and Description |
|---|---|
static class |
CompilationTask.ExecutorServiceWrapper
Since
BackgroundCompileQueue uses a ThreadPoolExecutor
to run compilations, and since the executor expects each Callable (in our case, the
CompilationTask) to be converted into a FutureTask we use this wrapper around
the CompilationTask just for compatibility with the executor. |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitCompletion() |
void |
awaitCompletion(long timeout,
TimeUnit unit) |
Void |
call() |
boolean |
cancel() |
int |
compareTo(CompilationTask that) |
void |
finished() |
Future<?> |
getFuture() |
boolean |
hasNextTier() |
TruffleInliningData |
inliningData() |
boolean |
isCancelled()
Determines if this compilation has been cancelled.
|
boolean |
isLastTier()
Returns
true if this is a last tier compilation. |
int |
queueChange() |
double |
rate() |
boolean |
start() |
int |
targetHighestCompiledTier() |
long |
time() |
String |
toString() |
double |
weight() |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitisFirstTier, tierpublic void awaitCompletion(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException,
TimeoutException
public void awaitCompletion()
throws ExecutionException,
InterruptedException
public boolean cancel()
public void finished()
public boolean start()
public boolean isCancelled()
TruffleCompilationTaskisCancelled in interface TruffleCompilationTaskpublic boolean isLastTier()
TruffleCompilationTasktrue if this is a last tier compilation.isLastTier in interface TruffleCompilationTaskpublic TruffleInliningData inliningData()
inliningData in interface TruffleCompilationTaskpublic boolean hasNextTier()
hasNextTier in interface TruffleCompilationTaskpublic Future<?> getFuture()
public int compareTo(CompilationTask that)
compareTo in interface Comparable<CompilationTask>public int targetHighestCompiledTier()
public long time()
time in interface TruffleCompilationTaskpublic double weight()
weight in interface TruffleCompilationTaskpublic double rate()
rate in interface TruffleCompilationTaskpublic int queueChange()
queueChange in interface TruffleCompilationTask