Re: [webkit-dev] Out-of-memory handling

2008-12-18 Thread Kulanthaivel
You can check the Nokia's S60WebKit MemoryManager implementation. They have developed a method to handle out of memory situations in WebKit On Tue, Dec 9, 2008 at 12:07 AM, Darin Adler da...@apple.com wrote: On Dec 8, 2008, at 8:21 AM, Kelemen Balázs wrote: A tempting approach would be using

Re: [webkit-dev] Out-of-memory handling

2008-12-18 Thread Kulanthaivel
Yes I do. Nokia's Memory manager has a memory collector which goes and collects memory if the available application memory goes below certain threshold. It collects memory from WebCore cache. If the collected memory is not enough then it goes ahead and stops all the browser loads and notifies the

[webkit-dev] Out-of-memory handling

2008-12-08 Thread Kelemen Balázs
Hi Webkit Folks! We are thinking about how to deal with out-of-memory situation. A tempting approach would be using exception handling. E.g., what if we could catch a bad_alloc exception? Would there be any way to simply force WebKit from the browser to shutdown itself? When I say shutdown, I

Re: [webkit-dev] Out-of-memory handling

2008-12-08 Thread Darin Adler
On Dec 8, 2008, at 8:21 AM, Kelemen Balázs wrote: A tempting approach would be using exception handling. E.g., what if we could catch a bad_alloc exception? To use exception handling you'd probably have to change all the WebKit code to do cleanup when an exception is propagating.