[webkit-reviews] review requested: [Bug 67864] [Qt] Win32 build broken due to MachineStackMarker.cpp/.o failing to link against pthreads library : [Attachment 106966] Fix build errors

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 9 22:45:34 PDT 2011


Jarred Nicholls <jarred at sencha.com> has asked  for review:
Bug 67864: [Qt] Win32 build broken due to MachineStackMarker.cpp/.o failing to
link against pthreads library
https://bugs.webkit.org/show_bug.cgi?id=67864

Attachment 106966: Fix build errors
https://bugs.webkit.org/attachment.cgi?id=106966&action=review

------- Additional Comments from Jarred Nicholls <jarred at sencha.com>
Pretty sure Qt wouldn't attempt multi-threads on anything other than unix (not
even OS X).  Attached is a patch that should fix the build.  

JSC is grossly pthread-dependent in the runtime and heap access in
multi-thread-enabled blocks.  A huge improvement would need to be made so
platforms can provide their own means of threading, e.g., Qt can use their own
PlatformThread (QThread).

Based on what I'm seeing, the Win port uses pthread-win32
(http://sourceware.org/pthreads-win32/ and binaries here
ftp://sourceware.org/pub/pthreads-win32/dll-latest/lib/) instead of the Win API
threading functions in windows.h.  Qt Win32 is likely never going to rely on
that, so we'll need to keep Qt Win32 out of the loop for now and maybe create a
bug to enhance that using Qt threading, or some other reasonable work around.


More information about the webkit-reviews mailing list