[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


--- 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:

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

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

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