commit | e380960813bbb6e05d820eb75885556a1c4bf6ac | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed Aug 06 14:15:01 2014 -0700 |
committer | Christopher Ferris <cferris@google.com> | Wed Aug 06 17:57:04 2014 -0700 |
tree | 9eafb0466f8e3cdc3c24125d295e488312ac2099 | |
parent | f3868fa735ad67ec853f3db36936ca184bd5f79a [diff] |
Do a second key cleanup in pthread_exit. During pthread_exit, the keys are cleaned. Unfortunately, a call to free occurs after the cleanup and the memory for some of the keys is recreated when using jemalloc. The solution is to do the key cleanup twice. Also, modify the pthread_detach__leak test to be less flaky when run on a jemalloc system. Bug: 16513133 (cherry picked from commit 18d93f2793fad393b6aa6eae6afe1054958339d5) Change-Id: Idb32e7f9b09e2c088d256ed9eb881df80c81ff8e