[jsc-dev] bmalloc freelist from JIT code

Yusuke SUZUKI utatane.tea at gmail.com
Thu Nov 2 12:51:57 PDT 2017


Thank you for your replies!

On Fri, Nov 3, 2017 at 4:49 AM, Filip Pizlo <fpizlo at apple.com> wrote:

> I think he means: expose whatever the bmalloc fast path is to the JIT.  I
> didn’t take it to mean literally add a free list.
>

Yeah, right. My question is: is that feasible to add an interface to
allocate bmalloc memory from JIT code?
Is there any known concern about this direction?


>
> -Filip
>
>
> > On Nov 2, 2017, at 12:46 PM, Geoffrey Garen <ggaren at apple.com> wrote:
> >
> >> So, my question is, is it feasible to consider adding a freelist
> mechanism to bmalloc that can be used from JIT?
> >
> > bmalloc uses a bump allocator rather than a free list, and that’s pretty
> important to its performance.
>

Thanks! Yeah, a bump allocator is ok. If the JIT-ed code can bump it to
allocate memory, it is fine.



> >
> > Geoff
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/jsc-dev/attachments/20171103/c024f618/attachment.html>


More information about the jsc-dev mailing list