diff --git a/src/servers/app/BGet++.cpp b/src/servers/app/BGet++.cpp index 3612fe07b9..e9c8435a2e 100644 --- a/src/servers/app/BGet++.cpp +++ b/src/servers/app/BGet++.cpp @@ -1,13 +1,13 @@ /* * Copyright 2001-2005, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. - - * Authors: John Walker - * DarkWyrm - * Stephan Aßmus + * + * Authors: + * John Walker + * DarkWyrm + * Stephan Aßmus * * BGET pool allocator - * */ /* @@ -65,6 +65,7 @@ MemPool::MemPool() fFreeList.ql = (qlinks){ &fFreeList, &fFreeList }; } + MemPool::~MemPool() { } @@ -572,7 +573,6 @@ MemPool::ExtendedStats(ssize_t *pool_incr, long *npool, long *npget, long *nprel } - // Dump the data in a buffer. This is called with the user data pointer, // and backs up to the buffer header. It will dump either a free block // or an allocated one. @@ -663,8 +663,8 @@ MemPool::PoolDump(void *buf, bool dumpalloc, bool dumpfree) } else { - char *lerr = ""; - + char *lerr = ""; + assert(bs > 0); if ((b->ql.blink->ql.flink != b) || (b->ql.flink->ql.blink != b)) { @@ -740,69 +740,69 @@ MemPool::Validate(void *buf) return 1; } + int* MemPool::CompactMem(ssize_t sizereq, int sequence) { return NULL; } + void* MemPool::AcquireMem(ssize_t size) { return malloc(size); } + void MemPool::ReleaseMem(void *buffer) { free(buffer); } + +// #pragma mark - + + AreaPool::AreaPool() { } + AreaPool::~AreaPool() { } + void* AreaPool::AcquireMem(ssize_t size) { - long areasize=0; - area_id a; - int *parea; - - if(size