Commit b5682f21 authored by Mathieu Chartier's avatar Mathieu Chartier
Browse files

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
parent cf7e7c50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment