[webkit-dev] bmalloc design question about relation with std malloc

Filip Pizlo fpizlo at apple.com
Mon Apr 30 06:38:13 PDT 2018


Ideally we would use the mmap allocator. But I wouldn’t do that if it causes a space usage regression, for example if we allocate a lot of small vectors. 

-Filip

> On Apr 30, 2018, at 3:35 AM, Yusuke SUZUKI <utatane.tea at gmail.com> wrote:
> 
> Hi, WebKittens,
> 
> IIRC, bmalloc uses mmap based page allocator for internal memory use. For example, bmalloc::Vector uses it instead of calling malloc.
> But recent changes start using std::vector, which means it uses std malloc under the hood.
> 
> So my question is, if we want some internal memory allocation in bmalloc, shoud we use std::malloc? Or should we use mmap based allocator?
> 
> Best regards,
> Yusuke Suzuki
> -- 
> Regards,
> Yusuke Suzuki
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev


More information about the webkit-dev mailing list