[webkit-help] Threads in Webkit

hap 497 hap497 at gmail.com
Thu Jan 21 22:51:33 PST 2010


Hi,

I run GtkLauncher in gdb. After I load a page, I do a thread dump in gdb.
I notice these 2 threads: 1 is to sync Icon database? 1 is for malloc?

Why there is a long-running thread needs to sync icon database? Can
that be disabled?

Thank you.

Thread 3 (Thread 0xb6741b70 (LWP 4304)):
#0  0x001be422 in __kernel_vsyscall ()
#1  0x00730e15 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x016abd64 in WTF::ThreadCondition::wait(WTF::Mutex&) ()
   from /home/scheung/WebKit/.libs/libwebkit-1.0.so.2
#3  0x01395d1f in WebCore::IconDatabase::syncThreadMainLoop() ()
   from /home/scheung/WebKit/.libs/libwebkit-1.0.so.2
#4  0x01395df4 in WebCore::IconDatabase::iconDatabaseSyncThread() ()
---Type <return> to continue, or q <return> to quit---
   from /home/scheung/WebKit/.libs/libwebkit-1.0.so.2
#5  0x016abcbf in WTF::threadEntryPoint(void*) ()
   from /home/scheung/WebKit/.libs/libwebkit-1.0.so.2
#6  0x0072c80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x00c057ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb706ab70 (LWP 4303)):
#0  0x001be422 in __kernel_vsyscall ()
#1  0x00730e15 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0176b387 in WTF::TCMalloc_PageHeap::scavengerThread() ()
   from /home/scheung/WebKit/.libs/libwebkit-1.0.so.2
#3  0x0176b3c1 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) ()
   from /home/scheung/WebKit/.libs/libwebkit-1.0.so.2
#4  0x0072c80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0x00c057ee in clone () from /lib/tls/i686/cmov/libc.so.6


More information about the webkit-help mailing list