<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>190121</bug_id>
          
          <creation_ts>2018-10-01 02:46:44 -0700</creation_ts>
          <short_desc>[WTF] r236617 broke JSCOnly build on Windows</short_desc>
          <delta_ts>2018-10-01 05:34:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Template Framework</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>189947</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Koby">koby.b</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>mark.lam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1464923</commentid>
    <comment_count>0</comment_count>
    <who name="Koby">koby.b</who>
    <bug_when>2018-10-01 02:46:44 -0700</bug_when>
    <thetext>Hi,
After updating my copy of WebKit, the Windows build of JSCOnly port fails with the following error:
c:\togithub\webkit-original\webkit\source\wtf\wtf\generic\mainthreadgeneric.cpp(33): fatal error C1083: Cannot open include file: &apos;pthread.h&apos;: No such file or directory [C
:\togithub\WebKit-Original\webkit\WebKitBuild\Release\Source\WTF\wtf\WTF.vcxproj]

Looking at the file, it seems that since r236617 MainThreadGeneric.cpp always includes pthread.h, which is a problem since it isn&apos;t available on Windows (on the JSCOnly port uses MainThreadGeneric.cpp on all platforms).

What do you think? should this be fixed in MainThreadGeneric or should the JSCOnly use the Windows implementation of MainThread?

Thanks,
Koby</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464929</commentid>
    <comment_count>1</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2018-10-01 03:13:23 -0700</bug_when>
    <thetext>(In reply to Koby from comment #0)
&gt; Hi,
&gt; After updating my copy of WebKit, the Windows build of JSCOnly port fails
&gt; with the following error:
&gt; c:\togithub\webkit-original\webkit\source\wtf\wtf\generic\mainthreadgeneric.
&gt; cpp(33): fatal error C1083: Cannot open include file: &apos;pthread.h&apos;: No such
&gt; file or directory [C
&gt; :\togithub\WebKit-Original\webkit\WebKitBuild\Release\Source\WTF\wtf\WTF.
&gt; vcxproj]
&gt; 
&gt; Looking at the file, it seems that since r236617 MainThreadGeneric.cpp
&gt; always includes pthread.h, which is a problem since it isn&apos;t available on
&gt; Windows (on the JSCOnly port uses MainThreadGeneric.cpp on all platforms).
&gt; 
&gt; What do you think? should this be fixed in MainThreadGeneric or should the
&gt; JSCOnly use the Windows implementation of MainThread?
&gt; 
&gt; Thanks,
&gt; Koby

Use MainThreadWin instead in Window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464932</commentid>
    <comment_count>2</comment_count>
    <who name="Koby">koby.b</who>
    <bug_when>2018-10-01 03:30:20 -0700</bug_when>
    <thetext>Thanks! it seems to compile. I&apos;ll test it and upload a patch here.
If I&apos;m moving MainThread to the Windows implementation, is there anything else I need to change? Like the WorkQueueGeneric which is currently used (vs WorkQueueWin)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464934</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2018-10-01 03:33:21 -0700</bug_when>
    <thetext>(In reply to Koby from comment #2)
&gt; Thanks! it seems to compile. I&apos;ll test it and upload a patch here.
&gt; If I&apos;m moving MainThread to the Windows implementation, is there anything
&gt; else I need to change? Like the WorkQueueGeneric which is currently used (vs
&gt; WorkQueueWin)?

Just using MainThreadWin.cpp instead of MainThreadGeneric.cpp is OK. It should work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464951</commentid>
    <comment_count>4</comment_count>
      <attachid>351236</attachid>
    <who name="Koby">koby.b</who>
    <bug_when>2018-10-01 04:46:49 -0700</bug_when>
    <thetext>Created attachment 351236
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464952</commentid>
    <comment_count>5</comment_count>
    <who name="Koby">koby.b</who>
    <bug_when>2018-10-01 04:47:11 -0700</bug_when>
    <thetext>Added a patch :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464953</commentid>
    <comment_count>6</comment_count>
      <attachid>351236</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2018-10-01 04:50:39 -0700</bug_when>
    <thetext>Comment on attachment 351236
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464962</commentid>
    <comment_count>7</comment_count>
      <attachid>351236</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-10-01 05:33:12 -0700</bug_when>
    <thetext>Comment on attachment 351236
Patch

Clearing flags on attachment: 351236

Committed r236655: &lt;https://trac.webkit.org/changeset/236655&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464963</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-10-01 05:33:14 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464964</commentid>
    <comment_count>9</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-10-01 05:34:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/44906628&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>351236</attachid>
            <date>2018-10-01 04:46:49 -0700</date>
            <delta_ts>2018-10-01 05:33:12 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-190121-20181001144646.patch</filename>
            <type>text/plain</type>
            <size>1501</size>
            <attacher name="Koby">koby.b</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjM2NjQ1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV1RGL0NoYW5n
ZUxvZyBiL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCmluZGV4IDMwYTBjNTliZjM0MWNmYzIwMDFjMzc4
OGUwOGM3MDFkN2NlZTk2MDQuLjQ5YjVjZTA0ZmZjOWM0N2ZiM2E5ZDJkMDdlNGM3NjVlOWU4NTdh
YmMgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9XVEYvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTgtMTAtMDEgIEtvYnkgQm95YW5nbyAgPGtvYnku
YkBtY2Utc3lzLmNvbT4KKworICAgICAgICBbV1RGXVtKU0NPTkxZXSBVc2UgTWFpblRocmVhZFdp
biBvbiBXaW5kb3dzIGluIHRoZSBKU0NPbmx5IHBvcnQKKyAgICAgICAgaHR0cHM6Ly9idWdzLndl
YmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE5MDEyMQorCisgICAgICAgIFJldmlld2VkIGJ5IE5P
Qk9EWSAoT09QUyEpLgorCisgICAgICAgIFRoaXMgZml4ZXMgSlNDT25seSBidWlsZCBvbiBXaW5k
b3dzIGFmdGVyIHIyMzY2MTcuCisKKyAgICAgICAgKiB3dGYvUGxhdGZvcm1KU0NPbmx5LmNtYWtl
OgorCiAyMDE4LTA5LTI2ICBLb2J5IEJveWFuZ28gIDxrb2J5LmJAbWNlLn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