aboutsummaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/chunk_mmap.h
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2012-04-18 18:29:43 +0200
committerJason Evans <jasone@canonware.com>2012-04-18 18:57:48 -0700
commit666c5bf7a8baaa842da69cb402948411432a9d00 (patch)
treee1297a397d99a6fa3b0cc7813ced7d8d169e241e /include/jemalloc/internal/chunk_mmap.h
parente38e45743fd283ae90986c2c728607e9eb12676d (diff)
downloadjemalloc-666c5bf7a8baaa842da69cb402948411432a9d00.tar.gz
Add a pages_purge function to wrap madvise(JEMALLOC_MADV_PURGE) calls
This will be used to implement the feature on mingw, which doesn't have madvise.
Diffstat (limited to 'include/jemalloc/internal/chunk_mmap.h')
-rw-r--r--include/jemalloc/internal/chunk_mmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/jemalloc/internal/chunk_mmap.h b/include/jemalloc/internal/chunk_mmap.h
index 04e86af..2d01ac2 100644
--- a/include/jemalloc/internal/chunk_mmap.h
+++ b/include/jemalloc/internal/chunk_mmap.h
@@ -9,6 +9,8 @@
/******************************************************************************/
#ifdef JEMALLOC_H_EXTERNS
+void pages_purge(void *addr, size_t length);
+
void *chunk_alloc_mmap(size_t size, size_t alignment);
bool chunk_dealloc_mmap(void *chunk, size_t size);