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