[webkit-dev] std::shared_ptr?

Brendan Long self at brendanlong.com
Sat Oct 26 20:51:51 PDT 2013

One of the answers on this Stack Overflow question
suggests that we can fix the memory issue by using `making_shared`:

> *use* |make_shared|
<http://en.cppreference.com/w/cpp/memory/shared_ptr/make_shared> *to
allocate them*, because (unfortunately) the normal constructor allocates
two different blocks: one for the object and one for the counter and

Unfortunately, it looks like
they're really slow because they're thread-safe, but that may also apply
to RefPtr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20131026/32480981/attachment.html>

More information about the webkit-dev mailing list