Merge "Don't MAP_POPULATE native ZygoteCommandBuffer"
This commit is contained in:
@@ -296,7 +296,7 @@ jlong com_android_internal_os_ZygoteCommandBuffer_getNativeBuffer(JNIEnv* env, j
|
|||||||
++buffersAllocd;
|
++buffersAllocd;
|
||||||
// MMap explicitly to get it page aligned.
|
// MMap explicitly to get it page aligned.
|
||||||
void *bufferMem = mmap(NULL, sizeof(NativeCommandBuffer), PROT_READ | PROT_WRITE,
|
void *bufferMem = mmap(NULL, sizeof(NativeCommandBuffer), PROT_READ | PROT_WRITE,
|
||||||
MAP_ANONYMOUS | MAP_PRIVATE | MAP_POPULATE, -1, 0);
|
MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
|
||||||
// Currently we mmap and unmap one for every request handled by the Java code.
|
// Currently we mmap and unmap one for every request handled by the Java code.
|
||||||
// That could be improved, but unclear it matters.
|
// That could be improved, but unclear it matters.
|
||||||
if (bufferMem == MAP_FAILED) {
|
if (bufferMem == MAP_FAILED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user