commit | 10e814ba3f01361999d824f0c67db179580d4ca2 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed Jul 08 15:26:42 2015 -0700 |
committer | Christopher Ferris <cferris@google.com> | Wed Jul 08 15:26:42 2015 -0700 |
tree | e13e3a2e0971418a070b0b582803cc445c43f129 | |
parent | 5b53665f2da3d09490b537e6e81bb9f2d8c9a418 [diff] |
Make sure the arena cache cannot be reused. The arena cache is freed when the jemalloc key is destroyed. However, if another key destroy function winds up making an allocation, jemalloc can wind up rewriting the arena pointers into the previous arena cache pointer. The fix is to clear out the pointer and make sure that the arena cache will not be recreated. Bug: 20296122 Change-Id: I5df933e5841dd66c4936fb356bda13aec82a2803