diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-09 23:55:57 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-09 23:55:57 +0400 |
commit | f2280661cb7be102cecf86e711fe32142430d89f (patch) | |
tree | c2691278855513a5cbc25d8ca340969992ee4d82 /intern/guardedalloc | |
parent | 0609aee4db0da33dcdb404d8285b093b21325deb (diff) |
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.
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r-- | intern/guardedalloc/intern/mallocn_lockfree_impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/guardedalloc/intern/mallocn_lockfree_impl.c b/intern/guardedalloc/intern/mallocn_lockfree_impl.c index c0f6aeeaa9d..2041a1c132a 100644 --- a/intern/guardedalloc/intern/mallocn_lockfree_impl.c +++ b/intern/guardedalloc/intern/mallocn_lockfree_impl.c @@ -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) { |