Home | History | Annotate | Download | only in linker

Lines Matching refs:block

80 void LinkerBlockAllocator::free(void* block) {
81 if (block == nullptr) {
85 LinkerBlockAllocatorPage* page = find_page(block);
91 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes;
97 memset(block, 0, block_size_);
99 FreeBlockInfo* block_info = reinterpret_cast<FreeBlockInfo*>(block);
138 LinkerBlockAllocatorPage* LinkerBlockAllocator::find_page(void* block) {
139 if (block == nullptr) {
146 if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + PAGE_SIZE)) {