From: markt Date: Mon, 23 Nov 2009 00:28:03 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48249 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3694369d5c3bcd5eac5306f319321147f2cb4747;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48249 Use volatile since field is accessed by multiple threads git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@883199 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/NioBlockingSelector.java b/java/org/apache/tomcat/util/net/NioBlockingSelector.java index cbcda4677..cbe80a104 100644 --- a/java/org/apache/tomcat/util/net/NioBlockingSelector.java +++ b/java/org/apache/tomcat/util/net/NioBlockingSelector.java @@ -194,7 +194,7 @@ public class NioBlockingSelector { protected class BlockPoller extends Thread { - protected boolean run = true; + protected volatile boolean run = true; protected Selector selector = null; protected ConcurrentLinkedQueue events = new ConcurrentLinkedQueue(); public void disable() { run = false; selector.wakeup();}