final class CompilerExecutor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static long |
COMPILER_STACK_SIZE |
private static java.util.concurrent.ExecutorService |
compilerExecutor
Under JRE 1.6, the JS Compiler overflows the stack when running on some
large or complex JS code.
|
private java.lang.Thread |
compilerThread
Use a dedicated compiler thread per Compiler instance.
|
private int |
timeout |
private boolean |
useThreads
Whether to use threads.
|
Constructor and Description |
---|
CompilerExecutor() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
disableThreads() |
(package private) <T> T |
runInCompilerThread(java.util.concurrent.Callable<T> callable,
boolean dumpTraceReport) |
(package private) void |
setTimeout(int timeout) |
private static final long COMPILER_STACK_SIZE
private static final java.util.concurrent.ExecutorService compilerExecutor
private java.lang.Thread compilerThread
private boolean useThreads
private int timeout