commit | b5682f2161f92d0c877d66c1ec73913fe500bbe4 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Mon Sep 22 12:43:54 2014 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Mon Sep 22 13:04:49 2014 -0700 |
tree | d72af4dbc600355f5a49d671bd942920b8293f70 | |
parent | cf7e7c50f8bb5a516358ab0b403fe03bec3f0c5d [diff] |
Don't call Allocation.createTyped when synchronized There is a deadlock which can occur since Allocation.createTyped calls registerNativeAllocation which may run finalizers. When the finalizers are run, one of them may add an element back to the cache. So if we do this while being synchronized on this cache, we deadlock. Bug: 17447556 Change-Id: I15755e6991dcf82ebfe94299c26456ee2e60ad25