Home
last modified time | relevance | path

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

/external/perfetto/src/base/
Dpaged_memory.cc36 constexpr size_t kGuardSize = kPageSize; variable
47 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()
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer.cc46 constexpr auto kGuardSize = base::kPageSize * 1024 * 16; // 64 MB. variable
104 size_t outer_size = kMetaPageSize + size_ * 2 + kGuardSize; in ~SharedRingBuffer()
142 size_t outer_size = kMetaPageSize + size * 2 + kGuardSize; in Initialize()