diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-08-04 13:45:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-08-04 13:45:34 +0100 |
commit | 73daa89974bee6848f0659b395fcac8e6ee87e90 (patch) | |
tree | a888856fa1d0a4b73f0d2a4cd5c751ad3883cfab /config.h.in | |
parent | 8adde9930b0db2c1dacfad4161ce3bc0e1aa39a8 (diff) | |
download | rspamd-73daa89974bee6848f0659b395fcac8e6ee87e90.tar.gz rspamd-73daa89974bee6848f0659b395fcac8e6ee87e90.zip |
Use glib slab allocator for hash tables.
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 3 |
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}" |