Revert "android: Optionally madvise(MADV_RANDOM) on .text."
This reverts commit 411a34f5e9b7e19c5b8ca4443e20f5d51e3fa8b9.
Reason for revert: Breaks compile on x86 builders: https://build.chromium.org/p/chromium.android/builders/Android%20Cronet%20x86%20Builder%20%28dbg%29/builds/72101, https://build.chromium.org/p/chromium.android/builders/Android%20Cronet%20x86%20Builder/builds/44466
Original change's description:
> android: Optionally madvise(MADV_RANDOM) on .text.
>
> This CL adds:
>
> - "anchor" functions at the beginning and end of .text: these are
> already used in lightweight_cygprofile.cc, and require the orderfile
> to be properly constructed, which is the case since
> https://chromium-review.googlesource.com/753882. These functions are
> trickier for regular builds, as they use --icf=all.
> - madvise(MADV_RANDOM): disable kernel readahead on a given range. This makes
> the reporting logic for code residency clearer, as it actually shows which
> pages are requested. This has to be called as early as possible and from all
> processes, and may be enabled in all builds at a later date. This is
> controlled by a new command-line flag, madvise-random-executable-code.
>
> Bug: 758566
> Change-Id: I8c7a5ca759b355b9e632d6ad027f8d9cd8fb84e8
> Reviewed-on: https://chromium-review.googlesource.com/776895
> Commit-Queue: Benoit L <lizeb@chromium.org>
> Reviewed-by: Camille Lamy <clamy@chromium.org>
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Reviewed-by: Egor Pasko <pasko@chromium.org>
> Reviewed-by: agrieve <agrieve@chromium.org>
> Reviewed-by: Matthew Cary <mattcary@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#518639}
TBR=pasko@chromium.org,thestig@chromium.org,clamy@chromium.org,agrieve@chromium.org,lizeb@chromium.org,mattcary@chromium.org
Change-Id: Ia5cb28b8a8f39d3e585162aa2974451d3fd7be5e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 758566
Reviewed-on: https://chromium-review.googlesource.com/786050
Reviewed-by: Miriam Gershenson <mgersh@chromium.org>
Commit-Queue: Miriam Gershenson <mgersh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518645}
CrOS-Libchrome-Original-Commit: 8e157d49242372de81d6804ffcb2e4be722efaa4
8 files changed