uint setAttr(void* ptr, uint attr)
{
auto cell = this.live_list.find(ptr);
uint setAttr(void* ptr, uint attr)
{
auto cell = this.live_list.find(ptr);
uint clrAttr(void* ptr, uint attr)
{
auto cell = this.live_list.find(ptr);
uint clrAttr(void* ptr, uint attr)
{
auto cell = this.live_list.find(ptr);
goto reuse;
}
// No luck still, allocate a new cell
cell = Cell.alloc(size, attr);
goto reuse;
}
// No luck still, allocate a new cell
cell = Cell.alloc(size, attr);
// We have enough capacity already, just change the size
if (cell.capacity >= size) {
// We have enough capacity already, just change the size
if (cell.capacity >= size) {
blk_info.base = cell.ptr;
blk_info.size = cell.capacity;
blk_info.attr = cell.attr;
blk_info.base = cell.ptr;
blk_info.size = cell.capacity;
blk_info.attr = cell.attr;