commit | 43312d5ee57fcd99ed6e97992b0b146dd6b6db9e | [log] [tgz] |
---|---|---|
author | Jeongik Cha <jeongik@google.com> | Sat Apr 29 12:22:35 2023 +0900 |
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Tue May 02 04:32:29 2023 +0000 |
tree | 94b7d197747b6d3bb604a56f42e1db272864d17f | |
parent | b2b067192ac047b99c0d03104c5d7dbf79192ef1 [diff] |
Retry mmap if it fails Sometimes, mmap returns ENOMEM even though there is enough memory, in that case, retried mmap mostly succeeds. So as a workaround, let MemMapArena::Allocate retry at most 3 time. (to resolve flaky build failure) Bug: 278665389 Test: run dex2oat repeatedly Change-Id: Icbde6a06fe8d1b189486ea2ab10003425248df52