8055767: Sjavac is leaking servers
authorerikj
Fri, 22 Aug 2014 12:25:01 +0200
changeset 26263 5ce1fe94b270
parent 26109 0430c63da650
child 26264 a09fedde76be
8055767: Sjavac is leaking servers Reviewed-by: alundblad, jfranck
langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/server/SjavacServer.java
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/server/SjavacServer.java	Tue Aug 19 15:34:01 2014 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/server/SjavacServer.java	Fri Aug 22 12:25:01 2014 +0200
@@ -310,7 +310,7 @@
 
     @Override
     public void shutdown(String quitMsg) {
-        if (!keepAcceptingRequests.compareAndSet(false, true)) {
+        if (!keepAcceptingRequests.compareAndSet(true, false)) {
             // Already stopped, no need to shut down again
             return;
         }