Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
bmalloc: vm allocations should plant guard pages
https://bugs.webkit.org/show_bug.cgi?id=156937 Reviewed by Michael Saboff. * bmalloc/Object.h: (bmalloc::Object::operator-): Added a - helper. * bmalloc/VMAllocate.h: (bmalloc::vmRevokePermissions): Added a helper to revoke permissions on a VM region. We use this for guard pages. * bmalloc/VMHeap.cpp: (bmalloc::VMHeap::allocateSmallChunk): Add guard pages to the start and end of the chunk. Note that we don't guard large chunks becuase we need to be able to merge them. Otherwise, we will run out of virtual addresses. Canonical link: https://commits.webkit.org/175048@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
39 additions
and 0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters