Searched refs:block_size_ (Results 1 – 4 of 4) sorted by relevance
/bionic/linker/ |
D | linker_block_allocator.cpp | 36 : block_size_(block_size < sizeof(FreeBlockInfo) ? sizeof(FreeBlockInfo) : block_size), in LinkerBlockAllocator() 49 reinterpret_cast<char*>(free_block_list_) + block_size_); in alloc() 57 memset(block_info, 0, block_size_); in alloc() 75 if (offset % block_size_ != 0) { in free() 79 memset(block, 0, block_size_); in free() 111 first_block->num_free_blocks = (PAGE_SIZE - sizeof(LinkerBlockAllocatorPage*))/block_size_; in create_new_page()
|
D | linker_allocator.cpp | 73 : type_(0), name_(nullptr), block_size_(0), free_pages_cnt_(0), free_blocks_list_(nullptr) {} in LinkerSmallObjectAllocator() 83 reinterpret_cast<uint8_t*>(block_record) + block_size_); in alloc() 101 memset(block_record, 0, block_size_); in alloc() 136 if (offset % block_size_ != 0) { in free() 137 __libc_fatal("invalid pointer: %p (block_size=%zd)", ptr, block_size_); in free() 140 memset(ptr, 0, block_size_); in free() 161 block_size_ = block_size; in init() 174 __libc_fatal("page record for %p was not found (block_size=%zd)", ptr, block_size_); in find_page_record() 207 size_t free_blocks_cnt = (PAGE_SIZE - sizeof(page_info))/block_size_; in alloc_page()
|
D | linker_block_allocator.h | 45 size_t block_size_; variable
|
D | linker_allocator.h | 108 size_t get_block_size() const { return block_size_; } in get_block_size() 117 size_t block_size_; variable
|