tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47158] New: I think AccessLogValve has race condition problem
Date Tue, 05 May 2009 22:12:47 GMT

           Summary: I think AccessLogValve has race condition problem
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina

"Double-Checked Locking" pattern is heavily used in this class, but the usage
of it in AccessLogValve has some issues of race condition judging by this

Based by this article, I think these variables in this class should be declared
as volatile to get rid of race condition: 

private volatile long currentMillis;

private volatile  Date currentDate;

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message