Home | History | Annotate | Download | only in libmemunreachable

Lines Matching defs:kChunkSize

58 static constexpr size_t kChunkSize = 256 * 1024;
59 static constexpr size_t kUsableChunkSize = kChunkSize - kPageSize;
60 static constexpr size_t kMaxBucketAllocationSize = kChunkSize / 4;
182 & ~(kChunkSize - 1));
185 return (reinterpret_cast<uintptr_t>(ptr) & (kChunkSize - 1)) != 0;
225 // Override new operator on chunk to use mmap to allocate kChunkSize
228 void* mem = MapAligned(kChunkSize, kChunkSize);
236 // Override new operator on chunk to use mmap to allocate kChunkSize
239 munmap(ptr, kChunkSize);
404 void* ptr = MapAligned(size, kChunkSize);