Searched refs:madvise_begin (Results 1 – 1 of 1) sorted by relevance
/art/runtime/gc/allocator/ |
D | rosalloc.cc | 1372 uint8_t* madvise_begin = AlignUp(zero_begin, kPageSize); in Trim() local 1373 DCHECK_LE(madvise_begin, page_map_mem_map_->End()); in Trim() 1374 size_t madvise_size = page_map_mem_map_->End() - madvise_begin; in Trim() 1376 DCHECK_ALIGNED(madvise_begin, kPageSize); in Trim() 1379 memset(madvise_begin, 0, madvise_size); in Trim() 1381 CHECK_EQ(madvise(madvise_begin, madvise_size, MADV_DONTNEED), 0); in Trim() 1383 if (madvise_begin - zero_begin) { in Trim() 1384 memset(zero_begin, 0, madvise_begin - zero_begin); in Trim()
|