[Webkit-unassigned] [Bug 27077] Workers + garbage collector: weird crashes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 9 04:46:55 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27077





--- Comment #2 from Zoltan Herczeg <zherczeg at inf.u-szeged.hu>  2009-07-09 04:46:54 PDT ---
I belive I found the multithread problem:

Collector.cpp:
static inline void* currentThreadStackBase()

There are some static variables here:
    static void* stackBase = 0;
    static size_t stackSize = 0;
    static pthread_t stackThread;

When these values are written by different threads in the same time, it cause
crash.

I put a "static Mutex mutex;" to solve this problem, but perhaps a thread local
static variable would the the best solution. Do WebKit support thread local
variables?

After your response about the best solution I will file a patch.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list