Home
last modified time | relevance | path

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

/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp163 size_t alloc_size = 1024; in VerifyAllocCalls() local
166 uint8_t* pointer = reinterpret_cast<uint8_t*>(debug_malloc(alloc_size)); in VerifyAllocCalls()
174 pointer = reinterpret_cast<uint8_t*>(debug_calloc(1, alloc_size)); in VerifyAllocCalls()
181 pointer = reinterpret_cast<uint8_t*>(debug_memalign(128, alloc_size)); in VerifyAllocCalls()
188 pointer = reinterpret_cast<uint8_t*>(debug_realloc(nullptr, alloc_size)); in VerifyAllocCalls()
193 memset(pointer, 0xff, alloc_size); in VerifyAllocCalls()
196 pointer = reinterpret_cast<uint8_t*>(debug_realloc(pointer, alloc_size * 2)); in VerifyAllocCalls()
198 for (size_t i = 0; i < alloc_size; i++) { in VerifyAllocCalls()
201 for (size_t i = alloc_size; i < debug_malloc_usable_size(pointer); i++) { in VerifyAllocCalls()
206 pointer = reinterpret_cast<uint8_t*>(debug_realloc(pointer, alloc_size)); in VerifyAllocCalls()
/bionic/tests/
Dmalloc_test.cpp831 static void __attribute__((optnone)) AndroidVerifyAlignment(size_t alloc_size, size_t aligned_bytes… in AndroidVerifyAlignment() argument
835 ptrs[i] = malloc(alloc_size); in AndroidVerifyAlignment()
839 << alloc_size << " actual ptr " << ptrs[i]; in AndroidVerifyAlignment()
Dfortify_test.cpp412 #if !__has_attribute(alloc_size)