[Webkit-unassigned] [Bug 177719] Either fold bmalloc into WTF or find a way to share code between then

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 1 20:58:52 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=177719

--- Comment #5 from Mark Lam <mark.lam at apple.com> ---
Currently, bmalloc also duplicates many utility classes and templates.  If we merge bmalloc into WTF, we will need some clear way of delineating between low level classes that bmalloc can use, and high level ones that depends on bmalloc.  The first tricky one that comes to mind is Vector (which is both used by bmalloc, and is used by clients of WTF as a data structure allocating using bmalloc).

If possible, I prefer splitting WTF into a low level and high level library and fold bmalloc into the low level library.  This makes the boundary clearer.  Some notions that divide the low and high level libraries: 

1. low level lib cannot use malloc; high level lib can.
2. low level lib provides primitive platform abstraction (e.g. lock primitives, thread primitives, memory, etc); high level lib provides more full featured platform abstractions (e.g. locks, thread, etc), data structures, and utilities.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171002/661d20bf/attachment.html>


More information about the webkit-unassigned mailing list