Re-apply: Implement mapping randomization for 64-bit Linux.
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 21 Jul 2011 11:01:50 +0000 (11:01 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 21 Jul 2011 11:01:50 +0000 (11:01 +0000)
commit5fba76891b752558386bca613a1663b6207704c2
tree00dd87cad50731615301197014beeb2024c6eafb
parent7a0adba963977437f7c7a09aeaa35918e76d2529
Re-apply: Implement mapping randomization for 64-bit Linux.

- 32-bit Linux already seems to scatter the mmap() chunks around;
  64-bit didn't.

- Seed the system random number generator a little better (we needlessly trunctaed microsecond resolution to millisecond resolution).

- Will automatically take advantage of better entropy when V8::RandomPrivate uses it.

R=fschneider@chromium.org,cevans@chromium.org
BUG=v8:805
TEST=

Review URL: http://codereview.chromium.org/7464022
Patch from Chris Evans <cevans@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8705 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/platform-linux.cc