summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/DebugData.cpp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-02-17 20:38:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-02-17 20:38:02 +0000
commit598cb89790ba93edbb392c567ecda32b39d64ff1 (patch)
tree28f8dc579b1462a232620d180ab5f32a88f687f4 /libc/malloc_debug/DebugData.cpp
parent2de48bc809bba48a7f209e209b3822bad010166f (diff)
parent7a28a3cf1f8df36e30724e8b4021cddde0596118 (diff)
Merge "malloc_debug: reset TrackData mutex after fork"
Diffstat (limited to 'libc/malloc_debug/DebugData.cpp')
-rw-r--r--libc/malloc_debug/DebugData.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/malloc_debug/DebugData.cpp b/libc/malloc_debug/DebugData.cpp
index 92b866d03..0447566b0 100644
--- a/libc/malloc_debug/DebugData.cpp
+++ b/libc/malloc_debug/DebugData.cpp
@@ -82,3 +82,21 @@ bool DebugData::Initialize() {
}
return true;
}
+
+void DebugData::PrepareFork() {
+ if (track != nullptr) {
+ track->PrepareFork();
+ }
+}
+
+void DebugData::PostForkParent() {
+ if (track != nullptr) {
+ track->PostForkParent();
+ }
+}
+
+void DebugData::PostForkChild() {
+ if (track != nullptr) {
+ track->PostForkChild();
+ }
+}