-
oliver@apple.com authored
Reviewed by Gavin Barraclough. Add guard pages to each end of the memory region used by the fixedvm allocator https://bugs.webkit.org/show_bug.cgi?id=61150 Add mechanism to notify the OSAllocator that pages at either end of an allocation should be considered guard pages. Update PageReservation, PageAllocation, etc to handle this. * JavaScriptCore.exp: * jit/ExecutableAllocatorFixedVMPool.cpp: (JSC::FixedVMPoolAllocator::FixedVMPoolAllocator): * wtf/OSAllocator.h: * wtf/OSAllocatorPosix.cpp: (WTF::OSAllocator::reserveUncommitted): (WTF::OSAllocator::reserveAndCommit): * wtf/PageAllocation.h: (WTF::PageAllocation::PageAllocation): * wtf/PageAllocationAligned.h: (WTF::PageAllocationAligned::PageAllocationAligned): * wtf/PageBlock.h: (WTF::PageBlock::PageBlock): * wtf/PageReservation.h: (WTF::PageReservation::reserve): (WTF::PageReservation::reserveWithGuardPages): Add a new function to make a reservation that will add guard pages to the ends of an allocation. (WTF::PageReservation::PageReservation): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a3b44328