summaryrefslogtreecommitdiff
path: root/indra/llcommon/llmemory.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-07-19 23:17:55 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-07-19 23:17:55 -0600
commit76eca5d0bce3e303f6d77b0d16f114320830ac6a (patch)
tree384a17b775475128ce2b7baf9ce4a0b19a0d3315 /indra/llcommon/llmemory.h
parentd9512674678bbb80b8d0d9c5105f56dbd1b2252b (diff)
fix for memory alignment to 16 bytes.
Diffstat (limited to 'indra/llcommon/llmemory.h')
-rw-r--r--indra/llcommon/llmemory.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llcommon/llmemory.h b/indra/llcommon/llmemory.h
index d3b824c6e9..26488423a3 100644
--- a/indra/llcommon/llmemory.h
+++ b/indra/llcommon/llmemory.h
@@ -226,7 +226,7 @@ public:
U32 mUsageBits ;
U8 mTotalSlots ;
U8 mAllocatedSlots ;
- U8 mDummySize ; //size of extra U32 reserved for mUsageBits.
+ U8 mDummySize ; //size of extra bytes reserved for mUsageBits.
public:
LLMemoryBlock* mPrev ;
@@ -256,7 +256,7 @@ public:
char* allocate(U32 size) ;
void freeMem(void* addr) ;
- const char* getBuffer() const {return mBuffer;}
+ char* getBuffer() const {return mBuffer;}
U32 getBufferSize() const {return mBufferSize;}
U32 getAllocatedSize() const {return mAlloatedSize;}
@@ -408,9 +408,11 @@ public:
#endif
#define FREE_MEM(poolp, addr) LLPrivateMemoryPoolManager::freeMem((poolp), (addr))
//-------------------------------------------------------------------------------------
+
//
//the below singleton is used to test the private memory pool.
//
+#if 0
class LL_COMMON_API LLPrivateMemoryPoolTester
{
private:
@@ -481,6 +483,7 @@ void LLPrivateMemoryPoolTester::operator delete[](void* addr)
sPool->free(addr) ;
}
#endif
+#endif
// LLRefCount moved to llrefcount.h
// LLPointer moved to llpointer.h