[jsc-dev] bmalloc freelist from JIT code
Geoffrey Garen
ggaren at apple.com
Thu Nov 2 13:01:33 PDT 2017
> On Fri, Nov 3, 2017 at 4:49 AM, Filip Pizlo <fpizlo at apple.com <mailto: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?
I see.
I tend to agree with Phil that inlining bmalloc allocation is possible but it is better to avoid doing so unless we meet a high burden of proof.
FWIW, in MallocBench benchmarks I haven’t seen a significant speedup from inlining the allocation path — even though doing so allows you to constant-fold the allocator selection math.
I guess you could start by just inlining the Slice and Substring operations, and then seen how much additional speedup you got by inlining the allocation too.
Geoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/jsc-dev/attachments/20171102/a7057041/attachment.html>
More information about the jsc-dev
mailing list