Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ff3ca17b
Commit
ff3ca17b
authored
Jun 26, 2014
by
Matt Stancliff
Committed by
antirez
Jun 27, 2014
Browse files
Use predefined macro for used_memory() update
parent
04749ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/zmalloc.c
View file @
ff3ca17b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment