tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46990] New: Synchronize target cannot be changed midway
Date Wed, 08 Apr 2009 01:52:11 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46990

           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
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: sebb@apache.org


Created an attachment (id=23455)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message