mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
27.37.2010 7e98bdf0dbf3e54f9bfe44485db183821c35e78b
Fix for issue #4260. Made shutdownRequested Monitor volatile
2 files modified
8 ■■■■ changed files
opends/src/server/org/opends/server/extensions/TraditionalWorkQueue.java 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/extensions/TraditionalWorkQueue.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 */
package org.opends.server.extensions;
@@ -100,7 +100,7 @@
  private boolean killThreads;
  // Indicates whether the Directory Server is shutting down.
  private boolean shutdownRequested;
  private volatile boolean shutdownRequested;
  // The thread number used for the last worker thread that was created.
  private int lastThreadNumber;
opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 */
package org.opends.server.extensions;
import org.opends.messages.Message;
@@ -59,7 +59,7 @@
  // Indicates whether the Directory Server is shutting down and this thread
  // should stop running.
  private boolean shutdownRequested;
  private volatile boolean shutdownRequested;
  // Indicates whether this thread was stopped because the server threadnumber
  // was reduced.