diff options
author | Ulf Hermann <[email protected]> | 2014-10-21 16:47:53 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2014-10-30 13:19:33 +0100 |
commit | 625dae442419d3f75bcecbafeaca490cdd5413a8 (patch) | |
tree | 260ef75b180794ba4d4f8ed5ec4f18221604834e /src/3rdparty/masm/wtf/PageAllocationAligned.cpp | |
parent | 970ff81a14c93c4f41f384026220d4baad8eec70 (diff) |
Allow page allocations to include guard pages
The PageAllocator is in principle capable of using guard pages. We can
expose that functionality to its clients.
Change-Id: I919f6f76310feb160d2b26ac1fc64db4e91804bb
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/3rdparty/masm/wtf/PageAllocationAligned.cpp')
-rw-r--r-- | src/3rdparty/masm/wtf/PageAllocationAligned.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/3rdparty/masm/wtf/PageAllocationAligned.cpp b/src/3rdparty/masm/wtf/PageAllocationAligned.cpp index bdb976b1b7..1c35653381 100644 --- a/src/3rdparty/masm/wtf/PageAllocationAligned.cpp +++ b/src/3rdparty/masm/wtf/PageAllocationAligned.cpp @@ -75,10 +75,11 @@ void PageAllocationAligned::deallocate() ASSERT(!*this); #if OS(DARWIN) - vm_deallocate(current_task(), reinterpret_cast<vm_address_t>(tmp.base()), tmp.size()); + vm_deallocate(current_task(), reinterpret_cast<vm_address_t>(tmp.realBase()), tmp.realSize()); #else - ASSERT(tmp.m_reservation.contains(tmp.base(), tmp.size())); - OSAllocator::decommitAndRelease(tmp.m_reservation.base(), tmp.m_reservation.size(), tmp.base(), tmp.size()); + ASSERT(tmp.m_reservation.contains(tmp.realBase(), tmp.realSize())); + OSAllocator::decommitAndRelease(tmp.m_reservation.realBase(), tmp.m_reservation.realSize(), + tmp.realBase(), tmp.realSize()); #endif } |