Home
last modified time | relevance | path

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

/external/libchrome/base/metrics/
Dpersistent_memory_allocator.h295 struct SharedMetadata;
303 const SharedMetadata* shared_meta() const { in shared_meta()
304 return reinterpret_cast<const SharedMetadata*>( in shared_meta()
307 SharedMetadata* shared_meta() { in shared_meta()
308 return reinterpret_cast<SharedMetadata*>(const_cast<char*>(mem_base_)); in shared_meta()
Dpersistent_memory_allocator.cc93 struct PersistentMemoryAllocator::SharedMetadata { struct in base::PersistentMemoryAllocator
122 offsetof(SharedMetadata, queue);
245 (size >= sizeof(SharedMetadata) && size <= kSegmentMaxSize) && in IsMemoryAcceptable()
266 static_assert(sizeof(SharedMetadata) % kAllocAlignment == 0, in PersistentMemoryAllocator()
276 CHECK(((SharedMetadata*)0)->freeptr.is_lock_free()); in PersistentMemoryAllocator()
277 CHECK(((SharedMetadata*)0)->flags.is_lock_free()); in PersistentMemoryAllocator()
291 sizeof(SharedMetadata)); in PersistentMemoryAllocator()
316 shared_meta()->freeptr.store(sizeof(SharedMetadata), in PersistentMemoryAllocator()
678 if (ref < (queue_ok ? kReferenceQueue : sizeof(SharedMetadata))) in GetBlock()