Lines Matching defs:byte_count
210 static bool CheckMapRequest(uint8_t* expected_ptr, void* actual_ptr, size_t byte_count,
221 uintptr_t limit = expected + byte_count;
228 int result = munmap(actual_ptr, byte_count);
230 PLOG(WARNING) << StringPrintf("munmap(%p, %zd) failed", actual_ptr, byte_count);
277 size_t byte_count,
286 if (byte_count == 0) {
289 size_t page_aligned_byte_count = RoundUp(byte_count, kPageSize);
297 DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg)) << *error_msg;
358 return new MemMap(name, reinterpret_cast<uint8_t*>(actual), byte_count, actual,
362 MemMap* MemMap::MapDummy(const char* name, uint8_t* addr, size_t byte_count) {
363 if (byte_count == 0) {
366 const size_t page_aligned_byte_count = RoundUp(byte_count, kPageSize);
367 return new MemMap(name, addr, byte_count, addr, page_aligned_byte_count, 0, true /* reuse */);
371 size_t byte_count,
390 DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg))
399 if (byte_count == 0) {
405 // Adjust 'byte_count' to be page-aligned as we will map this anyway.
406 size_t page_aligned_byte_count = RoundUp(byte_count + page_offset, kPageSize);
447 const uint8_t *real_end = actual + page_offset + byte_count;
455 return new MemMap(filename, actual + page_offset, byte_count, actual, page_aligned_byte_count,