Lines Matching refs:block
68 void LinkerBlockAllocator::free(void* block) {
69 if (block == nullptr) {
73 LinkerBlockAllocatorPage* page = find_page(block);
79 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes;
85 memset(block, 0, block_size_);
87 FreeBlockInfo* block_info = reinterpret_cast<FreeBlockInfo*>(block);
128 LinkerBlockAllocatorPage* LinkerBlockAllocator::find_page(void* block) {
129 if (block == nullptr) {
136 if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + PAGE_SIZE)) {