Home
last modified time | relevance | path

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

/external/pigweed/pw_allocator/
Dfreelist_heap.cc47 Block* chunk_block = Block::FromUsableSpace(chunk.data()); in Allocate() local
49 chunk_block->CrashIfInvalid(); in Allocate()
53 auto status = chunk_block->Split(size, &leftover); in Allocate()
58 chunk_block->MarkUsed(); in Allocate()
64 return chunk_block->UsableSpace(); in Allocate()
75 Block* chunk_block = Block::FromUsableSpace(bytes); in Free() local
76 chunk_block->CrashIfInvalid(); in Free()
78 size_t size_freed = chunk_block->InnerSize(); in Free()
80 if (!chunk_block->Used()) { in Free()
84 chunk_block->MarkFree(); in Free()
[all …]