equal
deleted
inserted
replaced
42 // The javac server that created this pool. |
42 // The javac server that created this pool. |
43 private JavacServer javacServer; |
43 private JavacServer javacServer; |
44 // A semaphore protecting the poolsize number of threads. |
44 // A semaphore protecting the poolsize number of threads. |
45 private Semaphore available; |
45 private Semaphore available; |
46 // The stack of compiler threads. |
46 // The stack of compiler threads. |
47 private Stack<CompilerThread> compilers = new Stack<CompilerThread>(); |
47 private Stack<CompilerThread> compilers = new Stack<>(); |
48 // And the executor server to spawn threads. |
48 // And the executor server to spawn threads. |
49 private final ExecutorService executorPool; |
49 private final ExecutorService executorPool; |
50 // How many requests are active right now? |
50 // How many requests are active right now? |
51 private int concurrentRequests = 0; |
51 private int concurrentRequests = 0; |
52 // When was the last request finished? |
52 // When was the last request finished? |