From 73daa89974bee6848f0659b395fcac8e6ee87e90 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 4 Aug 2013 13:45:34 +0100 Subject: [PATCH] Use glib slab allocator for hash tables. --- config.h.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.h.in b/config.h.in index 1eb67bf2f0..9e2995dd6a 100644 --- a/config.h.in +++ b/config.h.in @@ -205,6 +205,9 @@ #define HASH_FUNCTION MUR #define HASH_USING_NO_STRICT_ALIASING #endif +/* Configure allocator */ +#define uthash_malloc(sz) g_slice_alloc(sz) +#define uthash_free(ptr,sz) g_slice_free1(sz, ptr) #define ETC_PREFIX "${ETC_PREFIX}" #define LOCALSTATES_PREFIX "${LOCALSTATES_PREFIX}" -- 2.47.3