bmalloc: stress_aligned fails when allocating a zero-sized object with XLarge alignment
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Mar 2016 18:42:18 +0000 (18:42 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Mar 2016 18:42:18 +0000 (18:42 +0000)
commit77ac503dd3865a868032a962329468c268e72a5e
treec141926fb5b211af83217b5937c5740c44f1e026
parent3a2c8b88a1f3337b11face0e67aab03c0c0a9a46
bmalloc: stress_aligned fails when allocating a zero-sized object with XLarge alignment
https://bugs.webkit.org/show_bug.cgi?id=155896

Reviewed by Andreas Kling.

We normally filter zero-sized allocations into small allocations, but
a zero-sized allocation can sneak through if it requires sufficiently
large alignment.

* bmalloc/Heap.cpp:
(bmalloc::Heap::tryAllocateXLarge): Set a floor on allocation size to
catch zero-sized allocations.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/bmalloc/ChangeLog
Source/bmalloc/bmalloc/Heap.cpp