aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-04 13:45:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-04 13:45:34 +0100
commit73daa89974bee6848f0659b395fcac8e6ee87e90 (patch)
treea888856fa1d0a4b73f0d2a4cd5c751ad3883cfab
parent8adde9930b0db2c1dacfad4161ce3bc0e1aa39a8 (diff)
downloadrspamd-73daa89974bee6848f0659b395fcac8e6ee87e90.tar.gz
rspamd-73daa89974bee6848f0659b395fcac8e6ee87e90.zip
Use glib slab allocator for hash tables.
-rw-r--r--config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 1eb67bf2f..9e2995dd6 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}"