From f2280661cb7be102cecf86e711fe32142430d89f Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 10 Oct 2014 01:55:57 +0600 Subject: 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. --- intern/guardedalloc/intern/mallocn_lockfree_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/guardedalloc') 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) { -- cgit v1.2.3