From 3c26a7d68e90eefe2368945615d903aa0a1061b7 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Sat, 2 Oct 2010 12:04:41 -0700 Subject: Remove malloc_swap_enable(). Remove malloc_swap_enable(), which was obsoleted by the "swap.fds" mallctl. The prototype for malloc_swap_enable() was removed from jemalloc/jemalloc.h, but the function itself was accidentally left in place. --- jemalloc/src/jemalloc.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/jemalloc/src/jemalloc.c b/jemalloc/src/jemalloc.c index a79752e..98c4485 100644 --- a/jemalloc/src/jemalloc.c +++ b/jemalloc/src/jemalloc.c @@ -1248,23 +1248,6 @@ JEMALLOC_P(malloc_usable_size)(const void *ptr) return (ret); } -#ifdef JEMALLOC_SWAP -JEMALLOC_ATTR(visibility("default")) -int -JEMALLOC_P(malloc_swap_enable)(const int *fds, unsigned nfds, int prezeroed) -{ - - /* - * Make sure malloc is initialized, because we need page size, chunk - * size, etc. - */ - if (malloc_init()) - return (-1); - - return (chunk_swap_enable(fds, nfds, (prezeroed != 0)) ? -1 : 0); -} -#endif - JEMALLOC_ATTR(visibility("default")) void JEMALLOC_P(malloc_stats_print)(void (*write_cb)(void *, const char *), -- cgit v0.12