From b0abcd7fb0790804566165698018e63c6d096c1d Mon Sep 17 00:00:00 2001 From: fhanik Date: Tue, 21 Dec 2010 16:14:24 +0000 Subject: [PATCH] make shared variable volatile git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1051539 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/threads/CounterLatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/threads/CounterLatch.java b/java/org/apache/tomcat/util/threads/CounterLatch.java index b034b692a..1e5f04f98 100644 --- a/java/org/apache/tomcat/util/threads/CounterLatch.java +++ b/java/org/apache/tomcat/util/threads/CounterLatch.java @@ -49,7 +49,7 @@ public class CounterLatch { private final Sync sync; private final AtomicLong count; - private long signal; + private volatile long signal; private volatile boolean released = false; /** -- 2.11.0