Moved definition of _FreeBlock to the source file and enabled its "magic{1,2}" fields on debug only.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4525 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -58,12 +58,7 @@ private:
|
||||
BBlockCache(const BBlockCache &);
|
||||
BBlockCache &operator=(const BBlockCache &);
|
||||
|
||||
struct _FreeBlock
|
||||
{
|
||||
uint32 magic1;
|
||||
_FreeBlock *next;
|
||||
uint32 magic2;
|
||||
};
|
||||
struct _FreeBlock;
|
||||
|
||||
_FreeBlock *fFreeList;
|
||||
size_t fBlockSize;
|
||||
|
||||
@@ -29,6 +29,13 @@
|
||||
#define MAGIC1 0x9183f4d9
|
||||
#define MAGIC2 0xa6b3c87d
|
||||
|
||||
struct BBlockCache::_FreeBlock {
|
||||
DEBUG_ONLY( uint32 magic1; )
|
||||
_FreeBlock *next;
|
||||
DEBUG_ONLY( uint32 magic2; )
|
||||
};
|
||||
|
||||
|
||||
// The requirements set by the BeBook's description of the destructor,
|
||||
// as well as Get() function, allowing the caller to dispose of the
|
||||
// memory, do not allow to allocate one large block to be used as pool.
|
||||
|
||||
Reference in New Issue
Block a user