langtools/src/share/classes/com/sun/tools/sjavac/server/CompilerPool.java
changeset 22163 3651128c74eb
parent 15368 2577ddb7e710
child 22449 1fd6d4bec7dd
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
    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?