Merge "display: Ashmem: use MAP_POPULATE when mapping" into ics

This commit is contained in:
Linux Build Service Account 2011-11-25 05:20:31 -08:00 committed by QuIC Gerrit Code Review
commit 0a01ff6907

View File

@ -103,7 +103,7 @@ int AshmemAlloc::map_buffer(void **pBase, size_t size, int offset, int fd)
return err;
base = mmap(0, size, PROT_READ| PROT_WRITE,
MAP_SHARED, fd, 0);
MAP_SHARED|MAP_POPULATE, fd, 0);
*pBase = base;
if(base == MAP_FAILED) {
LOGD("%s: Failed to map memory in the client: %s",