android: Prefetch the ordered section first.

The section of .text covered by the orderfile is now located in the
middle of the binary, after the clang roll in r550608. This negatively
impacts startup performance as the prefetcher doesn't start by fetching
the early startup code.

This fixes it by fetching the ordered range first, then all of
.text. Fetching the ordered section twice should add almost no time, as
it is not even a minor page fault the second time.

Bug: 833299
Change-Id: Id71818a90552c85849b20624a4d144098c102a42
Reviewed-on: https://chromium-review.googlesource.com/1024032
Reviewed-by: Egor Pasko <pasko@chromium.org>
Reviewed-by: agrieve <agrieve@chromium.org>
Commit-Queue: Benoit L <lizeb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553032}

CrOS-Libchrome-Original-Commit: f35f74174187415e93b9cb15a242636c490eeb3c
1 file changed
tree: 9fae09668153b18ad7b0bd1bfe3a5db5d69a341f
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/