Commit f9bca13a authored by Matt Stancliff's avatar Matt Stancliff
Browse files

Use predefined macro for used_memory() update

parent 9be3ee82
...@@ -220,7 +220,7 @@ size_t zmalloc_used_memory(void) { ...@@ -220,7 +220,7 @@ size_t zmalloc_used_memory(void) {
if (zmalloc_thread_safe) { if (zmalloc_thread_safe) {
#ifdef HAVE_ATOMIC #ifdef HAVE_ATOMIC
um = __sync_add_and_fetch(&used_memory, 0); um = update_zmalloc_stat_add(0);
#else #else
pthread_mutex_lock(&used_memory_mutex); pthread_mutex_lock(&used_memory_mutex);
um = used_memory; um = used_memory;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment