[7u4] Request for approval for CR 7118809: rcache deadlock

Edvard Wendelin edvard.wendelin at oracle.com
Sun Jan 15 23:28:22 PST 2012


Approved.

On Jan 16, 2012, at 3:21 AM, Weijun Wang wrote:

> Hi All
> 
> This is a request to backport a jdk8 fix into jdk7u4.
> 
> CR: 7118809: rcache deadlock
> Weblink: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7118809
> 
> Description:
> 
> CacheTable.put() operates on ReplayCache inside it, and ReplayCache.put() operates on CacheTable containing it, and both methods are synchronized and using thread-safe Hashtable. Therefore there might be a deadlock when both methods are calling into the other one in two threads at the same time.
> 
> The fix is to remove the "call-up" side so that ReplayCache will not call CacheTable methods. It's already included in jdk8 as:
> 
>   Mon Jan 16 10:10:56 2012 +0800
>   changeset 4896: e8e08d46cc37
>   Reviewed-by: valeriep
> 
> The patch for jdk7u4 is a little different at
> 
>   http://cr.openjdk.java.net/~weijun/7118809/7u4/webrev.00/
> 
> and it has been reviewed by Valerie Peng (valeriep).
> 
> I intend to push it to
> 
>   ssh://hg.openjdk.java.net/jdk7u/jdk7u-dev-gate/jdk
> 
> Thanks
> Weijun




More information about the jdk7u-dev mailing list