Enable atomic peak memory detection

This gives more precise information about memory usage which might be real handy
when doing memory optimization.

It works good here for as long as i can tell but if for some reason you'll be
experiencing some weird slowdown please let me know.
This commit is contained in:
Sergey Sharybin 2014-10-10 01:55:57 +06:00
parent 0609aee4db
commit f2280661cb
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ enum {
#define MEMHEAD_IS_ALIGNED(memhead) ((memhead)->len & (size_t) MEMHEAD_ALIGN_FLAG)
/* Uncomment this to have proper peak counter. */
//#define USE_ATOMIC_MAX
#define USE_ATOMIC_MAX
MEM_INLINE void update_maximum(size_t *maximum_value, size_t value)
{