[webkit-dev] Shared<T>

Nilesh Patil vniles at gmail.com
Mon Mar 16 00:51:12 PDT 2009


Hi Darin,

Thanks For reply !!

I also wish to know about best way of memory profiling for webkit. I
mean how can i make sure that all the object that are allocated are
destroyed properly ?
Is it possible to account/make entry of memory as soon as it is
allocated and deallocated ?

Thanks & Regads
Niilesh

On Fri, Mar 13, 2009 at 9:37 PM, Darin Adler <darin at apple.com> wrote:
> On Mar 13, 2009, at 4:17 AM, natasha gabriella wrote:
>
>> I happened to go through code of webkit an sfound some Shared<T> class.
>
> That class template has a new name in the latest WebKit; it’s now named
> RefCounted<>.
>
>> What exactly it does.
>
> It implements simple intrusive reference counting.
>
>> Is it like class object is singleton and shared among ?
>
> No, it is not. It adds a reference count to a class. The reason it’s a
> template is so we don’t have to write the reference counting by hand for
> each class we want ot use it for.
>
>> Moreover if multiple window (mostly will be achieved by using some tab
>> like interface) are used, What all loader are advices to be shared ?
>
> I don’t understand this question.
>
>    -- Darin
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>


More information about the webkit-dev mailing list