Searched refs:kAllocAlignment (Results 1 – 3 of 3) sorted by relevance
92 const uint32_t PersistentMemoryAllocator::kAllocAlignment = 8; member in base::PersistentMemoryAllocator252 freeptr / (sizeof(BlockHeader) + kAllocAlignment); in GetNext()285 return ((base && reinterpret_cast<uintptr_t>(base) % kAllocAlignment == 0) && in IsMemoryAcceptable()287 (size % kAllocAlignment == 0 || readonly) && in IsMemoryAcceptable()327 static_assert(sizeof(BlockHeader) % kAllocAlignment == 0, in PersistentMemoryAllocator()329 static_assert(sizeof(SharedMetadata) % kAllocAlignment == 0, in PersistentMemoryAllocator()331 static_assert(kReferenceQueue % kAllocAlignment == 0, in PersistentMemoryAllocator()629 size = (size + (kAllocAlignment - 1)) & ~(kAllocAlignment - 1); in AllocateImpl()688 if (page_free - size < sizeof(BlockHeader) + kAllocAlignment) in AllocateImpl()849 if (ref % kAllocAlignment != 0) in GetBlock()
40 uint32_t kAllocAlignment; member in base::PersistentMemoryAllocatorTest60 kAllocAlignment = GetAllocAlignment(); in PersistentMemoryAllocatorTest()87 return PersistentMemoryAllocator::kAllocAlignment; in GetAllocAlignment()121 EXPECT_GT(sizeof(TestObject1) + kAllocAlignment, in TEST_F()161 EXPECT_GT(sizeof(TestObject2) + kAllocAlignment, in TEST_F()274 allocator_->Allocate(TEST_MEMORY_PAGE - 2 * kAllocAlignment, 2); in TEST_F()278 Reference block3 = allocator_->Allocate(2 * kAllocAlignment + 99, 3); in TEST_F()783 const uint32_t kAllocAlignment = in TEST() local811 const bool read_only = (filesize % (2 * kAllocAlignment)) != 0; in TEST()
632 static const uint32_t kAllocAlignment; variable