Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r223844 - bmalloc::api::tryLargeMemalignVirtual() shouldn't ass…
…ert on a failed allocation https://bugs.webkit.org/show_bug.cgi?id=178654 Reviewed by Geoffrey Garen. * bmalloc/bmalloc.h: (bmalloc::api::tryLargeMemalignVirtual): Call Heap::tryAllocateLarge() instead of Heap::allocateLarge(). The former will return a null pointer upon a failed allocation, allowing the caller to fail gracefully just as the API entrypoint implies, while the latter currently provokes a crash in these circumstances.
- Loading branch information
1 parent
54bff41
commit e4f41c7
Showing
2 changed files
with
15 additions
and
1 deletion.
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