Bug 65313 - MinGW-w64 - JIT causes build failure
Summary: MinGW-w64 - JIT causes build failure
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P1 Blocker
Assignee: Nobody
URL:
Keywords:
Depends on: 61235
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-28 06:39 PDT by Jonathan Liu
Modified: 2012-09-27 04:25 PDT (History)
7 users (show)

See Also:


Attachments
proposed patch (1.21 KB, patch)
2011-08-28 02:47 PDT, Jonathan Liu
no flags Details | Formatted Diff | Diff
proposed patch (1.25 KB, patch)
2011-08-28 02:55 PDT, Jonathan Liu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Liu 2011-07-28 06:39:09 PDT
JIT shouldn't be enabled on MinGW-w64 as it is unstable and causes crash when executing JavaScript.

The following should be added to JavaScriptCore/wtf/Platform.h:
/* JIT is not implemented for 64 bit on MinGW-w64 */
#if !defined(ENABLE_JIT) && COMPILER(MINGW64) && CPU(X86_64)
#define ENABLE_JIT 0
#endif
Comment 1 Alexey Proskuryakov 2011-07-29 11:13:26 PDT
Would you be willing to contribute this code to WebKit as described in <http://www.webkit.org/coding/contributing.html>?

I do not mean to diminish the contribution you made already by pointing out this bug, but historically, patches that aren't submitted according to the process almost never get landed.
Comment 2 vanboxem.ruben 2011-08-04 12:45:25 PDT
I believe this wouldn't work on 64-bit MSVC either. IMHO I think that the COMPILER(MINGW64) check is superfluous (and wrong). Last I knew, Win64 had no working JIT.
Comment 3 Jonathan Liu 2011-08-28 01:00:12 PDT
This issue causes build failure as indicated in bug 61235.
Comment 4 Jonathan Liu 2011-08-28 02:47:23 PDT
Created attachment 105446 [details]
proposed patch
Comment 5 Jonathan Liu 2011-08-28 02:51:43 PDT
(In reply to comment #1)
> Would you be willing to contribute this code to WebKit as described in <http://www.webkit.org/coding/contributing.html>?
> 
> I do not mean to diminish the contribution you made already by pointing out this bug, but historically, patches that aren't submitted according to the process almost never get landed.

Patch contributed as requested.
Comment 6 WebKit Review Bot 2011-08-28 02:52:11 PDT
Attachment 105446 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1

Source/JavaScriptCore/ChangeLog:3:  Line contains tab character.  [whitespace/tab] [5]
Source/JavaScriptCore/ChangeLog:4:  Line contains tab character.  [whitespace/tab] [5]
Source/JavaScriptCore/ChangeLog:5:  Line contains tab character.  [whitespace/tab] [5]
Source/JavaScriptCore/ChangeLog:9:  Line contains tab character.  [whitespace/tab] [5]
Source/JavaScriptCore/ChangeLog:10:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 5 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Jonathan Liu 2011-08-28 02:55:07 PDT
Created attachment 105447 [details]
proposed patch
Comment 8 WebKit Review Bot 2011-08-28 12:24:53 PDT
Comment on attachment 105447 [details]
proposed patch

Clearing flags on attachment: 105447

Committed r93950: <http://trac.webkit.org/changeset/93950>
Comment 9 WebKit Review Bot 2011-08-28 12:24:58 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Ademar Reis 2011-08-29 07:26:13 PDT
Revision r93950 cherry-picked into qtwebkit-2.2 with commit b017396 <http://gitorious.org/webkit/qtwebkit/commit/b017396>
Comment 11 Kai Koehne 2012-09-27 03:26:28 PDT
Unfortunately this is broken again in latest qtwebkit: 

jit\ExecutableAllocatorFixedVMPool.cpp:34:22: fatal error: sys/mman.h: No such file or directory 

I've yet to find out what goes wrong this time ...
Comment 12 Kai Koehne 2012-09-27 04:25:08 PDT
Created another bug report for the regression: https://bugs.webkit.org/show_bug.cgi?id=97772