[webkit-changes] [WebKit/WebKit] b8999f: Gracefully handle guard-page mmap failures in OSAl...
Marcus Plutowski
noreply at github.com
Wed Sep 4 23:54:16 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b8999f1cf051e935d8ec14b70f7191e88eb7791d
https://github.com/WebKit/WebKit/commit/b8999f1cf051e935d8ec14b70f7191e88eb7791d
Author: Marcus Plutowski <marcus_plutowski at apple.com>
Date: 2024-09-04 (Wed, 04 Sep 2024)
Changed paths:
M Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp
Log Message:
-----------
Gracefully handle guard-page mmap failures in OSAllocatorPOSIX
https://bugs.webkit.org/show_bug.cgi?id=279155
rdar://135306076
Reviewed by Yusuke Suzuki.
While it's unlikely that these mmap calls fail, it is still possible --
e.g. if the process hits the maximum number of allocations midway
through this call. This patch makes it so that we won't just ignore such
failures, and will instead clean up + tell the caller that their
allocation failed.
* Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp:
(WTF::OSAllocator::tryReserveAndCommit):
Canonical link: https://commits.webkit.org/283195@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list