Summary: | Prevent potential data races on "org.apache.catalina.tribes.transport.bio.util.FastQueue.size". | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Mohsen Vakilian <reprogrammer> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | reprogrammer |
Priority: | P2 | ||
Version: | trunk | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Mohsen Vakilian
2011-12-18 23:41:25 UTC
Write access is protected by the lock. Making it volatile will ensure the latest version is available to the getSize() method. Fixed in trunk and 7.0.x and will be included in 7.0.24 onwards. Thanks for resolving this issue. Keshmesh <http://keshmesh.cs.illinois.edu/> detected this problem when we ran it on Tomcat using method "org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.run()" as an entry point. |