public class BackgroundCompileQueue extends Object
| Modifier and Type | Field and Description |
|---|---|
protected GraalTruffleRuntime |
runtime |
| Constructor and Description |
|---|
BackgroundCompileQueue(GraalTruffleRuntime runtime) |
| Modifier and Type | Method and Description |
|---|---|
Collection<OptimizedCallTarget> |
getQueuedTargets(EngineData engine)
Return call targets waiting in queue.
|
int |
getQueueSize() |
protected ThreadFactory |
newThreadFactory(String threadNamePrefix,
OptimizedCallTarget callTarget) |
protected void |
notifyIdleCompilerThread()
Called when a compiler thread becomes idle for more than
delayMillis. |
void |
shutdownAndAwaitTermination(long timeout) |
CompilationTask |
submitCompilation(org.graalvm.compiler.truffle.runtime.BackgroundCompileQueue.Priority priority,
OptimizedCallTarget target) |
CompilationTask |
submitInitialization(OptimizedCallTarget target,
Consumer<CompilationTask> action) |
protected final GraalTruffleRuntime runtime
public BackgroundCompileQueue(GraalTruffleRuntime runtime)
protected ThreadFactory newThreadFactory(String threadNamePrefix, OptimizedCallTarget callTarget)
public CompilationTask submitCompilation(org.graalvm.compiler.truffle.runtime.BackgroundCompileQueue.Priority priority, OptimizedCallTarget target)
public CompilationTask submitInitialization(OptimizedCallTarget target, Consumer<CompilationTask> action)
public int getQueueSize()
public Collection<OptimizedCallTarget> getQueuedTargets(EngineData engine)
public void shutdownAndAwaitTermination(long timeout)
protected void notifyIdleCompilerThread()
delayMillis.