commit | 1938e34e42969053f1b553779fa21257a28d708d | [log] [tgz] |
---|---|---|
author | Suprabh Shukla <suprabh@google.com> | Mon May 14 14:22:11 2018 -0700 |
committer | Suprabh Shukla <suprabh@google.com> | Mon May 14 14:51:01 2018 -0700 |
tree | 7e0bb948f506e08f23072bf4a11a7058be4416ff | |
parent | 1b69d7b40661640bbcbe9b456de8b8c21aefee37 [diff] |
Mitigating cache corruption in ArrayMap Before calling freeArrays, storing the array reference into a temporary pointer so that the main pointer doesn't end up corrupting the static pool of arrays on concurrent access. An earlier change missed a rare case when removeAt was called for the last element in the map. Test: atest android.util.ArrayMapTest atest android.util.cts.ArrayMapTest Bug: 78898947 Change-Id: I454c5b1600eb0a6c690e746df10f6a0ebcd8aa1d