[webkit-dev] Questions regarding memory debugging

Darin Adler darin at apple.com
Wed Mar 10 11:27:26 PST 2010


On Mar 10, 2010, at 11:15 AM, Mike Marchywka wrote:

> I haven't looked at this code but is SharedBuffer thread safe etc?

SharedBuffer uses RefCounted, an implementation that works only on a single thread, as opposed to the slower CrossThreadRefCounted.

We can test your guess about the memory problems being a thread-safety issue by adding assertions that check ref and deref are called only on one thread. Those would be extremely valuable. Someone was working on assertions of that type a while back, but I don’t think we successfully landed them.

    -- Darin



More information about the webkit-dev mailing list