[webkit-dev] WebKit memory management?

Ariya Hidayat ariya.hidayat at trolltech.com
Mon Sep 15 09:06:01 PDT 2008


> If I understand Mr. Pedriana correctly, you are incorrect in assuming that
> we would get "reduced syntax readability". You may use the regular "new"
> syntax that C++ programmers are accustomed to when allocating objects and
> arrays of objects that inherit from AllocBase. Pedriana proposes that we
> eventually add AllocBase as the base class of all root classes in WebKit,
> thus making AllocBase the only root class.
>
> The only time when you would need to use newObject/newArray is for some
> stray new/new[] calls when allocating something that does not inherit from
> AllocBase, i.e. a simple datatype.

I'm personally happy if we won't have the reduced syntax readability :-)

Still, I'm curious to see the use cases where it makes more sense to do this 
instead of global new/delete overrides at the application level. Feel free to 
enlighten me here...

(BTW, no need to CC me. I'm on the list).


-- 
Ariya Hidayat (ariya.hidayat at trolltech.com)
Software Engineer, Trolltech (a Nokia company)


More information about the webkit-dev mailing list