diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-12-19 18:17:18 -0500 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-12-19 18:17:18 -0500 |
commit | 9c2e0d84f84fe7c38b1e9f7a127efc540b43f5aa (patch) | |
tree | 0daaa88c45802db177e722d1c1eaf36cd86871c5 /indra/llcommon/llmemory.cpp | |
parent | e62ad2bf13aa05cb19c2bd72e0d9f59117a6ec84 (diff) |
SH-2789 WIP - various fixes to force 16-byte alignment
Diffstat (limited to 'indra/llcommon/llmemory.cpp')
-rw-r--r-- | indra/llcommon/llmemory.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp index 3b9758f996..22204e756a 100644 --- a/indra/llcommon/llmemory.cpp +++ b/indra/llcommon/llmemory.cpp @@ -61,6 +61,15 @@ BOOL LLMemory::sEnableMemoryFailurePrevention = FALSE; LLPrivateMemoryPoolManager::mem_allocation_info_t LLPrivateMemoryPoolManager::sMemAllocationTracker; #endif +void ll_assert_aligned_func(uintptr_t ptr,U32 alignment) +{ + if (ptr%alignment!=0) + { + llwarns << "alignment check failed" << llendl; + } + llassert(ptr%alignment==0); +} + //static void LLMemory::initClass() { |