This is a straight backport from OpenJDK 7. Without this patch, deadlocks can occur when the cache is accessed by multiple threads.
Webrev: http://cr.openjdk.java.net/~andrew/openjdk6/7027300/ Ok to push? -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) PGP Key: 248BDC07 (https://keys.indymedia.org/) Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07