2011-05-25 Oliver Hunt <oliver@apple.com>
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 May 2011 18:48:25 +0000 (18:48 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 May 2011 18:48:25 +0000 (18:48 +0000)
commit89646702d246ca51dbcf7f2079327bf10f942bad
tree9356357782b86f07b8d9c25843b049361ad8f66c
parente0994307d8d1d3f87df57ee44e5e2da0f6c10eb8
2011-05-25  Oliver Hunt  <oliver@apple.com>

        Reviewed by Geoffrey Garen.

        Make allocations with guard pages ensure that the allocation succeeded
        https://bugs.webkit.org/show_bug.cgi?id=61453

        Add null checks, and make PageBlock's operator bool() use
        the realbase, rather than the start of usable memory.

        * wtf/OSAllocatorPosix.cpp:
        (WTF::OSAllocator::reserveAndCommit):
        * wtf/PageBlock.h:
        (WTF::PageBlock::operator bool):
        (WTF::PageBlock::PageBlock):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@87308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wtf/OSAllocatorPosix.cpp
Source/JavaScriptCore/wtf/PageBlock.h