From f9bca13a1a216c27509a6fb910f71c039dd60c7a Mon Sep 17 00:00:00 2001 From: Matt Stancliff Date: Thu, 26 Jun 2014 08:51:13 -0400 Subject: [PATCH] Use predefined macro for used_memory() update --- src/zmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zmalloc.c b/src/zmalloc.c index d0cf726cb..bd36654fb 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -220,7 +220,7 @@ size_t zmalloc_used_memory(void) { if (zmalloc_thread_safe) { #ifdef HAVE_ATOMIC - um = __sync_add_and_fetch(&used_memory, 0); + um = update_zmalloc_stat_add(0); #else pthread_mutex_lock(&used_memory_mutex); um = used_memory;