Searched refs:PW_ALLOCATOR_POISON_OFFSET (Results 1 – 4 of 4) sorted by relevance
/external/pigweed/pw_allocator/ |
D | block.cc | 84 sizeof(Block) + 2 * PW_ALLOCATOR_POISON_OFFSET) { in Split() 95 PW_ALLOCATOR_POISON_OFFSET + in Split() 99 PW_ALLOCATOR_POISON_OFFSET); in Split() 224 memcpy(front_region, POISON_PATTERN, PW_ALLOCATOR_POISON_OFFSET); in PoisonBlock() 227 reinterpret_cast<std::byte*>(Next()) - PW_ALLOCATOR_POISON_OFFSET; in PoisonBlock() 228 memcpy(end_region, POISON_PATTERN, PW_ALLOCATOR_POISON_OFFSET); in PoisonBlock() 236 if (std::memcmp(front_region, POISON_PATTERN, PW_ALLOCATOR_POISON_OFFSET)) { in CheckPoisonBytes() 240 reinterpret_cast<intptr_t>(this->Next()) - PW_ALLOCATOR_POISON_OFFSET); in CheckPoisonBytes() 241 if (std::memcmp(end_region, POISON_PATTERN, PW_ALLOCATOR_POISON_OFFSET)) { in CheckPoisonBytes()
|
D | block_test.cc | 36 kN - sizeof(Block) - 2 * PW_ALLOCATOR_POISON_OFFSET); in TEST() 79 kSplitN + sizeof(Block) + 2 * PW_ALLOCATOR_POISON_OFFSET); in TEST() 83 kN - kSplitN - sizeof(Block) - 2 * PW_ALLOCATOR_POISON_OFFSET); in TEST() 112 split_len + sizeof(Block) + 2 * PW_ALLOCATOR_POISON_OFFSET); in TEST() 114 kN - split_len - sizeof(Block) - 2 * PW_ALLOCATOR_POISON_OFFSET); in TEST() 153 kN - sizeof(Block) - 2 * PW_ALLOCATOR_POISON_OFFSET - 1; in TEST() 202 block->InnerSize() - sizeof(Block) - 2 * PW_ALLOCATOR_POISON_OFFSET + 1, in TEST() 234 block->InnerSize() - sizeof(Block) - 2 * PW_ALLOCATOR_POISON_OFFSET, in TEST() 300 kN - kSplit2 - sizeof(Block) - 2 * PW_ALLOCATOR_POISON_OFFSET); in TEST() 378 std::byte fault_poison[PW_ALLOCATOR_POISON_OFFSET] = {std::byte(0)}; in TEST() [all …]
|
D | freelist_heap_test.cc | 34 EXPECT_EQ(ptr, &buf[0] + sizeof(Block) + PW_ALLOCATOR_POISON_OFFSET); in TEST() 89 allocator.Allocate(N - sizeof(Block) - 2 * PW_ALLOCATOR_POISON_OFFSET), in TEST() 127 allocator.Allocate(N - sizeof(Block) - 2 * PW_ALLOCATOR_POISON_OFFSET); in TEST()
|
/external/pigweed/pw_allocator/public/pw_allocator/ |
D | block.h | 29 #define PW_ALLOCATOR_POISON_OFFSET sizeof(void*) macro 33 #define PW_ALLOCATOR_POISON_OFFSET static_cast<size_t>(0) 106 PW_ALLOCATOR_POISON_OFFSET); in FromUsableSpace() 117 return OuterSize() - sizeof(*this) - 2 * PW_ALLOCATOR_POISON_OFFSET; in InnerSize() 123 PW_ALLOCATOR_POISON_OFFSET; in UsableSpace()
|