commit | 368f61eb45edd0ed92db68ff0c8c3c0d998ab010 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Dec 29 16:56:53 2015 -0800 |
committer | Christopher Ferris <cferris@google.com> | Tue Feb 23 15:45:01 2016 -0800 |
tree | 17891411784fd51f1167959130806cbd86324acd | |
parent | da882547619a74542f8d938717ee7fea1c1e6b73 [diff] |
Add je_iterate, je_malloc_disable, and je_malloc_enable je_iterate calls a callback for every active jemalloc allocation in a block of memory. je_malloc_disable prevents allocations to avoid mutating the jemalloc internal data structures while je_iterate is running, and je_malloc_enable re-enables allocations. Bug: 27208635 (cherry picked from commit 6ab5f60a1e0d2b09ec7961b6e2d2c2a39e9c96f2) Change-Id: Ia5360c940509048532263f3a0dfb296d9e20a8aa