changeset 26263:5ce1fe94b270

8055767: Sjavac is leaking servers Reviewed-by: alundblad, jfranck
author erikj
date Fri, 22 Aug 2014 12:25:01 +0200
parents 0430c63da650
children a09fedde76be
files langtools/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/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;
         }