Commit d863530e authored by Colin Cross's avatar Colin Cross Committed by Christopher Ferris
Browse files

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
parent a071f48b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment