changeset 2598:bad77727fa11

8055767: Sjavac is leaking servers Reviewed-by: alundblad, jfranck
author erikj
date Fri, 22 Aug 2014 12:25:01 +0200
parents 4d1ea4477956
children 50b448c5be54
files src/jdk.compiler/share/classes/com/sun/tools/sjavac/server/SjavacServer.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/sjavac/server/SjavacServer.java	Tue Aug 19 15:34:01 2014 -0700
+++ b/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;
         }