allocator_avl.h: remove debug feature

This commit is contained in:
Norman Feske 2021-02-25 15:33:17 +01:00
parent a0a1f6455a
commit 6d231597b4

View File

@ -65,7 +65,6 @@ class Genode::Allocator_avl_base : public Range_allocator
addr_t _addr { 0 }; /* base address */ addr_t _addr { 0 }; /* base address */
size_t _size { 0 }; /* size of block */ size_t _size { 0 }; /* size of block */
bool _used { false }; /* block is in use */ bool _used { false }; /* block is in use */
short _id { 0 }; /* for debugging */
size_t _max_avail { 0 }; /* biggest free block size of size_t _max_avail { 0 }; /* biggest free block size of
sub tree */ sub tree */
@ -114,7 +113,6 @@ class Genode::Allocator_avl_base : public Range_allocator
** Accessorors ** ** Accessorors **
*****************/ *****************/
inline int id() const { return _id; }
inline addr_t addr() const { return _addr; } inline addr_t addr() const { return _addr; }
inline size_t avail() const { return _used ? 0 : _size; } inline size_t avail() const { return _used ? 0 : _size; }
inline size_t size() const { return _size; } inline size_t size() const { return _size; }
@ -137,12 +135,9 @@ class Genode::Allocator_avl_base : public Range_allocator
* Constructor * Constructor
*/ */
Block(addr_t addr, size_t size, bool used) Block(addr_t addr, size_t size, bool used)
: _addr(addr), _size(size), _used(used), :
_max_avail(used ? 0 : size) _addr(addr), _size(size), _used(used), _max_avail(used ? 0 : size)
{ { }
static int num_blocks;
_id = ++num_blocks;
}
/** /**
* Find best-fitting block * Find best-fitting block