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:
Ingo Weinhold
2003-09-07 12:04:24 +00:00
parent 1facca2109
commit 340eed61d6
2 changed files with 8 additions and 6 deletions
+1 -6
View File
@@ -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;
+7
View File
@@ -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.