Home
last modified time | relevance | path

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

/system/core/libmemunreachable/
DAllocator.cpp201 uint32_t free_bitmap_[kUsableChunkSize / kMinBucketAllocationSize / 32]; member in android::Chunk
240 memset(free_bitmap_, 0xff, sizeof(free_bitmap_)); in Chunk()
251 while (free_bitmap_[i] == 0) i++; in Alloc()
252 assert(i < arraysize(free_bitmap_)); in Alloc()
253 unsigned int bit = __builtin_ffs(free_bitmap_[i]) - 1; in Alloc()
254 assert(free_bitmap_[i] & (1U << bit)); in Alloc()
255 free_bitmap_[i] &= ~(1U << bit); in Alloc()
279 assert(i < arraysize(free_bitmap_)); in Free()
280 assert(!(free_bitmap_[i] & (1U << bit))); in Free()
281 free_bitmap_[i] |= 1U << bit; in Free()