Home
last modified time | relevance | path

Searched refs:block_size_ (Results 1 – 4 of 4) sorted by relevance

/bionic/linker/
Dlinker_block_allocator.cpp36 : 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()
Dlinker_allocator.cpp73 : 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()
Dlinker_block_allocator.h45 size_t block_size_; variable
Dlinker_allocator.h108 size_t get_block_size() const { return block_size_; } in get_block_size()
117 size_t block_size_; variable