summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorDenis Hsu <denis.hsu@mediatek.com>2018-01-15 18:49:01 +0800
committerDenis Hsu <denis.hsu@mediatek.com>2018-01-16 17:43:53 +0800
commit1a8106ec1aba6a5317f3dbfc3e8073630c18975b (patch)
tree5b44ad966491ae76335e68ee1279032da95835b5 /libc/malloc_hooks/malloc_hooks.cpp
parentd16b09a4d2832d0daea6d211a6b5b5312d404425 (diff)
malloc debug: reset FreeTrackData mutex after fork
Lock the FreeTrackData mutex during fork and reset it in the child. Ensures that the FreeTrackData is consistent when forking from a multi-threaded process, and that the mutex is in a defined state in the child. Test: 89hours MTBF test Change-Id: I5e5892832a733ea85727ec65abc7094d95a725ef
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions