This function is no longer used and could be removed.
* mmap_cache.c (mmap_cache_is_enabled): Remove.
* mmap_cache.h: Likewise.
#include "xstring.h"
static unsigned int mmap_cache_generation;
-static bool use_mmap_cache;
static void
mmap_cache_invalidate(struct tcb *tcp, void *unused)
void
mmap_cache_enable(void)
{
+ static bool use_mmap_cache;
+
if (!use_mmap_cache) {
mmap_notify_register_client(mmap_cache_invalidate, NULL);
use_mmap_cache = true;
}
}
-extern bool mmap_cache_is_enabled(void)
-{
- return use_mmap_cache;
-}
-
/*
* caching of /proc/ID/maps for each process to speed up stack tracing
*
extern void
mmap_cache_enable(void);
-extern bool
-mmap_cache_is_enabled(void);
-
extern void
mmap_cache_delete(struct tcb *, const char *caller);