tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46990] New: Synchronize target cannot be changed midway
Date Wed, 08 Apr 2009 01:52:11 GMT

           Summary: Synchronize target cannot be changed midway
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina

Created an attachment (id=23455)
 --> (
Fix broken synchronization

Various classes synchronize on a variable which is then changed. This will not
have the desired effect, as all accesses must use the same lock in order for
the synchronisation to work correctly.

The patch adds new final lock objects (which cannot be changed midway).

It also adds some additional synchronization to various get() methods to ensure
that reader threads get the correct updates.

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