diff options
| author | Oz Linden <oz@lindenlab.com> | 2012-07-24 10:51:37 -0400 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2012-07-24 10:51:37 -0400 |
| commit | 8df36196215131cbac961f47bfbd4a1b925548cb (patch) | |
| tree | 35fe890f1f2e47c9acd0d411925897ee7e3794d6 /indra/llcommon/llmemory.cpp | |
| parent | 4feef5af63f6294249aa50e37fba712cd9ddec91 (diff) | |
| parent | d7015a2b9b55907c8447d0051cf5d7ac862aebf7 (diff) | |
merge to viewer-developmento
Diffstat (limited to 'indra/llcommon/llmemory.cpp')
| -rw-r--r-- | indra/llcommon/llmemory.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp index 3b9758f996..afaf366668 100644 --- a/indra/llcommon/llmemory.cpp +++ b/indra/llcommon/llmemory.cpp @@ -61,6 +61,18 @@ BOOL LLMemory::sEnableMemoryFailurePrevention = FALSE; LLPrivateMemoryPoolManager::mem_allocation_info_t LLPrivateMemoryPoolManager::sMemAllocationTracker; #endif +void ll_assert_aligned_func(uintptr_t ptr,U32 alignment) +{ +#ifdef SHOW_ASSERT + // Redundant, place to set breakpoints. + if (ptr%alignment!=0) + { + llwarns << "alignment check failed" << llendl; + } + llassert(ptr%alignment==0); +#endif +} + //static void LLMemory::initClass() { |
