diff options
Diffstat (limited to 'libc/malloc_debug/DebugData.cpp')
-rw-r--r-- | libc/malloc_debug/DebugData.cpp | 18 |
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(); + } +} |