summaryrefslogtreecommitdiff
path: root/src/system-alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system-alloc.h')
-rw-r--r--src/system-alloc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/system-alloc.h b/src/system-alloc.h
index 9783e4f..8233f96 100644
--- a/src/system-alloc.h
+++ b/src/system-alloc.h
@@ -76,6 +76,13 @@ void* TCMalloc_SystemAlloc(size_t bytes, size_t *actual_bytes,
extern PERFTOOLS_DLL_DECL
bool TCMalloc_SystemRelease(void* start, size_t length);
+// Called to ressurect memory which has been previously released
+// to the system via TCMalloc_SystemRelease. An attempt to
+// commit a page that is already committed does not cause this
+// function to fail.
+extern PERFTOOLS_DLL_DECL
+void TCMalloc_SystemCommit(void* start, size_t length);
+
// The current system allocator.
extern PERFTOOLS_DLL_DECL SysAllocator* sys_alloc;