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

ludovicp
27.37.2010 4f2ac5689a75ba780e0dd33fd898e16997fd913d
Fix for issue #4260. Made shutdownRequested Monitor volatile
2 files modified
8 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/extensions/TraditionalWorkQueue.java 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/extensions/TraditionalWorkerThread.java 4 ●●●● patch | view | raw | blame | history
opendj-sdk/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;
opendj-sdk/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.