Re: [webkit-dev] How does the Javascript garbage collection work?

2008-09-11 Thread Josh Chia ()
Is it possible for a "false positive" on the stack to prevent an object from being collected even after calling collect() multiple times? On Thu, Sep 11, 2008 at 9:45 AM, Maciej Stachowiak <[EMAIL PROTECTED]> wrote: > > On Sep 11, 2008, at 1:53 AM, Josh Chia (谢任中) wrote: &g

Re: [webkit-dev] How does the Javascript garbage collection work?

2008-09-11 Thread Josh Chia ()
Sep 11, 2008 at 1:33 AM, Maciej Stachowiak <[EMAIL PROTECTED]> wrote: > > On Sep 11, 2008, at 12:13 AM, Josh Chia (谢任中) wrote: > > I did some more research. It seems that KJS does mark-and-sweep > GC<http://www.hpl.hp.com/personal/Hans_Boehm/gc/complexity.html>, &g

Re: [webkit-dev] How does the Javascript garbage collection work?

2008-09-11 Thread Josh Chia ()
wrong. On Wed, Sep 10, 2008 at 9:23 PM, Josh Chia (谢任中) <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to debug some memory leaks and now need to understand what > collector.{h,cpp} are doing. Could someone point me to some documents to > explain how the garbage collect

[webkit-dev] How does the Javascript garbage collection work?

2008-09-10 Thread Josh Chia ()
Hi, I'm trying to debug some memory leaks and now need to understand what collector.{h,cpp} are doing. Could someone point me to some documents to explain how the garbage collector works? I've also run valgrind and it complained that CollectorBitmap::get() uses an unreferenced value. I'm not su

[webkit-dev] Platform network did.* semantics for status 404 with HTML body

2008-09-04 Thread Josh Chia ()
I have an network platform implementation (ResourceHandle) that I'm not sure is doing the right thing. In particular, a.html has a

[webkit-dev] Memory leaks in KJS

2008-09-03 Thread Josh Chia ()
Hi, After rendering about 200 pages on my platform port of WebKit, I seem to be seeing some memory leaks involving the code in KJS, totalling 30-70MB. I have included a subgraph of the call graph for the leaking functions. I'm not familiar with the KJS code. Is it possible that circular referen