Wiki Markup |
---|
Misuse of synchronization primitives is a common source of implementation errors. ManyMost concurrency vulnerabilities arise from locking on the wrong kind of objectsobject. An analysis of the JDK 1.6.0 source code unveiled at least 31 bugs that fell into this category \[[Pugh 08|AA. Java References#Pugh 08]\]. It is important to recognize the entities with whom synchronization is required rather than indiscreetly scavenging for variables or objects to synchronize on. |
...