| 1687 | } |
| 1688 | |
| 1689 | bool deallocateBlock(FreeObjPtr blk) |
| 1690 | { |
| 1691 | size_t size = blk->getSize(); |
| 1692 | |
| 1693 | if (size > Limits::TOP_LIMIT) |
| 1694 | return false; // Not our block |
| 1695 | |
| 1696 | unsigned slot = Limits::getSlot(size, SLOT_ALLOC); |
| 1697 | listBuilder.putElement(&freeObjects[slot], blk); |
| 1698 | return true; |
| 1699 | } |
| 1700 | |
| 1701 | #ifdef MEM_DEBUG |
| 1702 | void print_contents(FILE* file, MemPool* pool, bool used_only, |
no test coverage detected