[webkit-dev] When to use FastAllocBase?
Adam Barth
abarth at webkit.org
Mon Oct 4 11:42:05 PDT 2010
On Mon, Oct 4, 2010 at 11:31 AM, Tony Gentilcore <tonyg at chromium.org> wrote:
> For general reference, when is it appropriate to use FastAllocBase?
>
> If you subclass RefCounted<T> or Noncopyable, which is very common,
> you pick up FastAllocBase. So, my naive guess is that any class/struct
> which doesn't pick up FastAllocBase through its inheritance chain
> should subclass it directly. Is that a reasonable guideline?
My understanding is that FastAllocBase is supposed to be on the
inheritance chain for every object that's allocated on the heap.
Adam
More information about the webkit-dev
mailing list