Author: markt Date: Fri Dec 23 21:11:04 2011 New Revision: 1222850 URL: http://svn.apache.org/viewvc?rev=1222850&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=52213 enabled should be volatile
Modified: tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/util/FastQueue.java Modified: tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/util/FastQueue.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/util/FastQueue.java?rev=1222850&r1=1222849&r2=1222850&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/util/FastQueue.java (original) +++ tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/util/FastQueue.java Fri Dec 23 21:11:04 2011 @@ -87,7 +87,7 @@ public class FastQueue { /** * enabled the queue */ - private boolean enabled = true; + private volatile boolean enabled = true; /** * max queue size @@ -158,7 +158,7 @@ public class FastQueue { public void setEnabled(boolean enable) { enabled = enable; - if (!enabled) { + if (!enable) { lock.abortRemove(); last = first = null; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org