summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2018-07-31 14:02:42 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2018-07-31 14:02:42 +0100
commit91dfd7e06c8e1e5499ffd4137053b4b238b7eb45 (patch)
tree744449d616b0476f23dd22766c5c7b3b19a5c9a3 /indra/llcommon
parenta8e34e2899165141dcdf49ba541125567ece7a35 (diff)
SL-944 - disabled a not-very-useful assert that greatly slows the RWD build
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llmemory.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llcommon/llmemory.h b/indra/llcommon/llmemory.h
index 5b17d9e3a4..f04ae5f5cb 100644
--- a/indra/llcommon/llmemory.h
+++ b/indra/llcommon/llmemory.h
@@ -60,6 +60,12 @@ class LLMutex ;
LL_COMMON_API void ll_assert_aligned_func(uintptr_t ptr,U32 alignment);
#ifdef SHOW_ASSERT
+// This is incredibly expensive - in profiling Windows RWD builds, 30%
+// of CPU time was in aligment checks.
+//#define ASSERT_ALIGNMENT
+#endif
+
+#ifdef ASSERT_ALIGNMENT
#define ll_assert_aligned(ptr,alignment) ll_assert_aligned_func(uintptr_t(ptr),((U32)alignment))
#else
#define ll_assert_aligned(ptr,alignment)