Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_block_allocator.cpp39 static constexpr size_t kAllocateSize = PAGE_SIZE * 100; variable
40 static_assert(kAllocateSize % PAGE_SIZE == 0, "Invalid kAllocateSize.");
49 uint8_t bytes[kAllocateSize - 16] __attribute__((aligned(16)));
113 if (mprotect(page, kAllocateSize, prot) == -1) { in protect_all()
114 async_safe_fatal("mprotect(%p, %zu, %d) failed: %m", page, kAllocateSize, prot); in protect_all()
120 static_assert(sizeof(LinkerBlockAllocatorPage) == kAllocateSize, in create_new_page()
124 mmap(nullptr, kAllocateSize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)); in create_new_page()
127 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, page, kAllocateSize, "linker_alloc"); in create_new_page()
145 if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + kAllocateSize)) { in find_page()
163 munmap(page, kAllocateSize); in purge()