commit | a5c61bf479453e7e195888afb4e62a9872d6be7c | [log] [tgz] |
---|---|---|
author | Richard Uhler <ruhler@google.com> | Mon Oct 24 15:54:44 2016 +0100 |
committer | Richard Uhler <ruhler@google.com> | Tue Oct 25 08:37:31 2016 +0100 |
tree | b517151377a1293612b9d2d2a04e696ad1036743 | |
parent | 3667e26de4856cccf24bcbab54ad3349a05267c0 [diff] |
Fall back to true anonymous mmap if out of file descriptors. MemMap::MapAnonymous needs a file descriptor to create an ashmem region to label otherwise anonymous mmaps for debugging purposes. If the process has no file descriptors available, fall back to traditional anonymous mmap rather than failing. Test: m test-art-host, m test-art-target Bug: 32013594 Bug: 32302133 Change-Id: I6b2c770fc031eb8d429407f3a0e7408c52cb1985