malloc_debug: reset TrackData mutex after fork
Add a pthread_atfork handler to malloc_debug to lock the TrackData mutex during fork and reset it in the child. Ensures that the TrackData is consistent when forking from a multi-threaded process, and that the mutex is in a defined state in the child. Bug: 27208635 (cherry picked from commit 7a28a3cf) Change-Id: I84bc67be09b8b767e1cf2f14141e2ae8dc4fb462
Loading
Please sign in to comment