[Bf-blender-cvs] [f228066] master: Enable atomic peak memory detection
Sergey Sharybin
noreply at git.blender.org
Thu Oct 9 21:58:01 CEST 2014
Commit: f2280661cb7be102cecf86e711fe32142430d89f
Author: Sergey Sharybin
Date: Fri Oct 10 01:55:57 2014 +0600
Branches: master
https://developer.blender.org/rBf2280661cb7be102cecf86e711fe32142430d89f
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.
===================================================================
M intern/guardedalloc/intern/mallocn_lockfree_impl.c
===================================================================
diff --git a/intern/guardedalloc/intern/mallocn_lockfree_impl.c b/intern/guardedalloc/intern/mallocn_lockfree_impl.c
index c0f6aee..2041a1c 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)
{
More information about the Bf-blender-cvs
mailing list