Some questions about the AccessLogValve

2009-04-02 Thread Xie Xiaodong
Hello, Dear All, I found that Double-Checked Locking Pattern are heavily used in AccessLogValve to get rid of race condition. But as far as I know, this pattern will not work in Java according to this article: http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html. I think this

Re: Some questions about the AccessLogValve

2009-04-02 Thread Mark Thomas
Xie Xiaodong wrote: Hello, Dear All, I found that Double-Checked Locking Pattern are heavily used in AccessLogValve to get rid of race condition. But as far as I know, this pattern will not work in Java according to this article:

Re: Some questions about the AccessLogValve

2009-04-02 Thread Xie Xiaodong
Hello, Mark, I am greatly with you. After I finish my proposal, I will check carefully what is the best way to solve this problem. 2009/4/2 Mark Thomas ma...@apache.org Xie Xiaodong wrote: Hello, Dear All, I found that Double-Checked Locking Pattern are heavily used in