v8/test/unittests/base/platform
Eric Holk a05743a265 Stop allocating RW memory in AllocateGuarded
AllocateGuarded previously fell back on Allocate and then called Guard
to set the protection to PROT_NONE. Linux commits RW memory, but the
important thing here is to reserve the address space without committing
it. This change adds a new variant of Allocate that takes explicit
permission bits so that AllocateGuarded allocates non-RW memory from the
beginning.

Bug: v8:6320
Change-Id: I7962acbed09938951bf3bb4af2d1f302adba2547
Reviewed-on: https://chromium-review.googlesource.com/491928
Commit-Queue: Eric Holk <eholk@chromium.org>
Reviewed-by: Mircea Trofin <mtrofin@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45075}
2017-05-04 02:19:20 +00:00
..
condition-variable-unittest.cc [presubmit] Enabling readability/inheritance linter checking. 2015-11-04 13:08:42 +00:00
mutex-unittest.cc Move unit tests to test/unittests. 2014-10-01 08:34:25 +00:00
platform-unittest.cc Stop allocating RW memory in AllocateGuarded 2017-05-04 02:19:20 +00:00
semaphore-unittest.cc [presubmit] Enabling readability/inheritance linter checking. 2015-11-04 13:08:42 +00:00
time-unittest.cc Enable ThreadTicks on Windows. 2016-06-30 15:36:08 +00:00