Port 138b7a2e54923d99ed817f9a890c6fcd7c23c335 to art

Disable ADDR_NO_RANDOMIZE for 3.4 or greater kernels

Early kernels had memory fragmentation bugs on ARM when
ASLR was enabled. The ADDR_NO_RANDOMIZE flag was added
to work around this bug until the appropriate kernel fix
could be made.

Linux kernel 3.4 seems to have this fix, making this workaround
unnecessary.  Remove the workaround if we detect we're running
an up-to-date kernel.

(I believe the kernel patch is also in 3.3, but haven't explicitly
tested it).

Bug: 5817320
Change-Id: Ife1e511355c62c16fc90ba22811face7b573b312
1 file changed
tree: d8c8aed92596c597df57038686a118515949b6b7
  1. .gitignore
  2. Android.mk
  3. build/
  4. jdwpspy/
  5. src/
  6. test/
  7. tools/