Searched refs:kGuardSize (Results 1 – 2 of 2) sorted by relevance
36 constexpr size_t kGuardSize = kPageSize; variable47 size_t outer_size = size + kGuardSize * 2; in Allocate()53 char* usable_region = reinterpret_cast<char*>(ptr) + kGuardSize; in Allocate()60 char* usable_region = reinterpret_cast<char*>(ptr) + kGuardSize; in Allocate()61 int res = mprotect(ptr, kGuardSize, PROT_NONE); in Allocate()62 res |= mprotect(usable_region + size, kGuardSize, PROT_NONE); in Allocate()97 char* start = p_ - kGuardSize; in ~PagedMemory()102 const size_t outer_size = size_ + kGuardSize * 2; in ~PagedMemory()
46 constexpr auto kGuardSize = base::kPageSize * 1024 * 16; // 64 MB. variable104 size_t outer_size = kMetaPageSize + size_ * 2 + kGuardSize; in ~SharedRingBuffer()142 size_t outer_size = kMetaPageSize + size * 2 + kGuardSize; in Initialize()