Searched refs:kAllocAlignment (Results 1 – 3 of 3) sorted by relevance
96 const uint32_t PersistentMemoryAllocator::kAllocAlignment = 8; member in base::PersistentMemoryAllocator261 freeptr / (sizeof(BlockHeader) + kAllocAlignment); in GetNext()294 return ((base && reinterpret_cast<uintptr_t>(base) % kAllocAlignment == 0) && in IsMemoryAcceptable()296 (size % kAllocAlignment == 0 || readonly) && in IsMemoryAcceptable()341 static_assert(sizeof(BlockHeader) % kAllocAlignment == 0, in PersistentMemoryAllocator()343 static_assert(sizeof(SharedMetadata) % kAllocAlignment == 0, in PersistentMemoryAllocator()345 static_assert(kReferenceQueue % kAllocAlignment == 0, in PersistentMemoryAllocator()643 size = (size + (kAllocAlignment - 1)) & ~(kAllocAlignment - 1); in AllocateImpl()702 if (page_free - size < sizeof(BlockHeader) + kAllocAlignment) in AllocateImpl()885 if (ref % kAllocAlignment != 0) in GetBlock()
53 uint32_t kAllocAlignment; member in base::PersistentMemoryAllocatorTest73 kAllocAlignment = GetAllocAlignment(); in PersistentMemoryAllocatorTest()100 return PersistentMemoryAllocator::kAllocAlignment; in GetAllocAlignment()134 EXPECT_GT(sizeof(TestObject1) + kAllocAlignment, in TEST_F()174 EXPECT_GT(sizeof(TestObject2) + kAllocAlignment, in TEST_F()287 allocator_->Allocate(TEST_MEMORY_PAGE - 2 * kAllocAlignment, 2); in TEST_F()291 Reference block3 = allocator_->Allocate(2 * kAllocAlignment + 99, 3); in TEST_F()837 const uint32_t kAllocAlignment = in TEST() local865 const bool read_only = (filesize % (2 * kAllocAlignment)) != 0; in TEST()
634 static const uint32_t kAllocAlignment; variable