Home
last modified time | relevance | path

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

/external/libchrome/base/metrics/
Dpersistent_memory_allocator.cc111 struct PersistentMemoryAllocator::SharedMetadata { struct in base::PersistentMemoryAllocator
146 offsetof(SharedMetadata, queue);
295 (size >= sizeof(SharedMetadata) && size <= kSegmentMaxSize) && in IsMemoryAcceptable()
338 static_assert(sizeof(PersistentMemoryAllocator::SharedMetadata) == 64, in PersistentMemoryAllocator()
343 static_assert(sizeof(SharedMetadata) % kAllocAlignment == 0, in PersistentMemoryAllocator()
353 CHECK(((SharedMetadata*)nullptr)->freeptr.is_lock_free()); in PersistentMemoryAllocator()
354 CHECK(((SharedMetadata*)nullptr)->flags.is_lock_free()); in PersistentMemoryAllocator()
368 sizeof(SharedMetadata)); in PersistentMemoryAllocator()
393 shared_meta()->freeptr.store(sizeof(SharedMetadata), in PersistentMemoryAllocator()
503 FlushPartial(sizeof(SharedMetadata), false); in SetMemoryState()
[all …]
Dpersistent_memory_allocator.h632 struct SharedMetadata;
640 const SharedMetadata* shared_meta() const { in shared_meta()
641 return reinterpret_cast<const SharedMetadata*>( in shared_meta()
644 SharedMetadata* shared_meta() { in shared_meta()
645 return reinterpret_cast<SharedMetadata*>(const_cast<char*>(mem_base_)); in shared_meta()