减少堆管理的调试日志

This commit is contained in:
大石头X2 2017-03-07 16:57:19 +08:00
parent 080a877b55
commit e0b06839f0
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ void* Heap::Alloc(int size)
_Used += need;
_Count++;
debug_printf("Heap::Alloc (%p, %d) First=%p Used=%d Count=%d \r\n", ret, need, _First, _Used, _Count);
//debug_printf("Heap::Alloc (%p, %d) First=%p Used=%d Count=%d \r\n", ret, need, _First, _Used, _Count);
return ret;
}
@ -131,7 +131,7 @@ void Heap::Free(void* ptr)
// 前面有空闲位置
if (cur <= _First) _First = prev;
debug_printf("Heap::Free (%p, %d) First=%p Used=%d Count=%d \r\n", ptr, cur->Used, _First, _Used, _Count);
//debug_printf("Heap::Free (%p, %d) First=%p Used=%d Count=%d \r\n", ptr, cur->Used, _First, _Used, _Count);
prev->Next = cur->Next;