<?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>67362</bug_id>
          
          <creation_ts>2011-08-31 23:06:04 -0700</creation_ts>
          <short_desc>Define PTHREAD_KEYS_MAX to fix Android port build</short_desc>
          <delta_ts>2011-09-01 21:28:53 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Android</rep_platform>
          <op_sys>Android</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>66689</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Hao Zheng">zhenghao</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>andreip</cc>
    
    <cc>peter</cc>
    
    <cc>steveblock</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>460241</commentid>
    <comment_count>0</comment_count>
    <who name="Hao Zheng">zhenghao</who>
    <bug_when>2011-08-31 23:06:04 -0700</bug_when>
    <thetext>PTHREAD_KEYS_MAX is not defined in bionic, so explicitly define it here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>460250</commentid>
    <comment_count>1</comment_count>
      <attachid>105897</attachid>
    <who name="Hao Zheng">zhenghao</who>
    <bug_when>2011-08-31 23:18:31 -0700</bug_when>
    <thetext>Created attachment 105897
Proposed patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>460253</commentid>
    <comment_count>2</comment_count>
      <attachid>105897</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-08-31 23:21:29 -0700</bug_when>
    <thetext>Comment on attachment 105897
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=105897&amp;action=review

&gt; Source/JavaScriptCore/ChangeLog:8
&gt; +        Define PTHREAD_KEYS_MAX to fix Android port build.
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=67362
&gt; +
&gt; +        Reviewed by NOBODY (OOPS!).
&gt; +
&gt; +        * wtf/ThreadIdentifierDataPthreads.cpp:

It would be good to include the information from the bug about this being a missing feature of bionic in the ChangeLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>460277</commentid>
    <comment_count>3</comment_count>
      <attachid>105906</attachid>
    <who name="Hao Zheng">zhenghao</who>
    <bug_when>2011-09-01 00:07:46 -0700</bug_when>
    <thetext>Created attachment 105906
Proposed patch 2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>460341</commentid>
    <comment_count>4</comment_count>
    <who name="Hao Zheng">zhenghao</who>
    <bug_when>2011-09-01 02:31:31 -0700</bug_when>
    <thetext>Sorry, one correction: It&apos;s not for Android port, which no longer exists. It&apos;s for Chromium port for Android.
And one clarification: it&apos;s not a build fix for the bot, but it&apos;s required when Chromium for Android starts using the code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>460344</commentid>
    <comment_count>5</comment_count>
      <attachid>105906</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-09-01 02:39:53 -0700</bug_when>
    <thetext>Comment on attachment 105906
Proposed patch 2.

Clearing flags on attachment: 105906

Committed r94281: &lt;http://trac.webkit.org/changeset/94281&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>460345</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-09-01 02:39:58 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>460562</commentid>
    <comment_count>7</comment_count>
      <attachid>105906</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-09-01 10:18:05 -0700</bug_when>
    <thetext>Comment on attachment 105906
Proposed patch 2.

View in context: https://bugs.webkit.org/attachment.cgi?id=105906&amp;action=review

&gt; Source/JavaScriptCore/wtf/ThreadIdentifierDataPthreads.cpp:40
&gt; +// PTHREAD_KEYS_MAX is not defined in bionic, so explicitly define it here.

Are you tracking this as a bug? It would help to have a link to that bug in a comment, so that we would know when it&apos;s safe to remove the workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>461036</commentid>
    <comment_count>8</comment_count>
    <who name="Hao Zheng">zhenghao</who>
    <bug_when>2011-09-01 21:28:53 -0700</bug_when>
    <thetext>See android bug: http://code.google.com/p/android/issues/detail?id=19764 .</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>105897</attachid>
            <date>2011-08-31 23:18:31 -0700</date>
            <delta_ts>2011-09-01 00:07:46 -0700</delta_ts>
            <desc>Proposed patch.</desc>
            <filename>JavaScriptCore.patch</filename>
            <type>text/plain</type>
            <size>996</size>
            <attacher name="Hao Zheng">zhenghao</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gOTQyNzEpCisrKyBTb3VyY2Uv
SmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAK
KzIwMTEtMDgtMzEgIEhhbyBaaGVuZyAgPHpoZW5naGFvQGNocm9taXVtLm9yZz4KKworICAgICAg
ICBEZWZpbmUgUFRIUkVBRF9LRVlTX01BWCB0byBmaXggQW5kcm9pZCBwb3J0IGJ1aWxkLgorICAg
ICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NjczNjIKKworICAg
ICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIHd0Zi9UaHJlYWRJ
ZGVudGlmaWVyRGF0YVB0aHJlYWRzLmNwcDoKKwogMjAxMS0wOC0zMSAgT2xpdmVyIEh1bnQgIDxv
bGl2ZXJAYXBwbGUuY29tPgogCiAgICAgICAgIEZpeCBidWlsZC4KSW5kZXg6IFNvdXJjZS9KYXZh
U2NyaXB0Q29yZS93dGYvVGhyZWFkSWRlbnRpZmllckRhdGFQdGhyZWFkcy5jcHAKPT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PQotLS0gU291cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9UaHJlYWRJZGVudGlmaWVyRGF0YVB0aHJl
YWRzLmNwcAkocmV2aXNpb24gOTQyNjQpCisrKyBTb3VyY2UvSmF2YVNjcmlwdENvcmUvd3RmL1Ro
cmVhZElkZW50aWZpZXJEYXRhUHRocmVhZHMuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC0zNiw3ICsz
NiwxMSBAQAogCiAjaW5jbHVkZSAiVGhyZWFkaW5nLmgiCiAKKyNpZiBPUyhBTkRST0lEKQorI2Rl
ZmluZSBQVEhSRUFEX0tFWVNfTUFYIDEwMjQKKyNlbHNlCiAjaW5jbHVkZSA8bGltaXRzLmg+Cisj
ZW5kaWYKIAogbmFtZXNwYWNlIFdURiB7CiAK
</data>
<flag name="review"
          id="102190"
          type_id="1"
          status="+"
          setter="abarth"
    />
    <flag name="commit-queue"
          id="102191"
          type_id="3"
          status="-"
          setter="abarth"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>105906</attachid>
            <date>2011-09-01 00:07:46 -0700</date>
            <delta_ts>2011-09-01 10:18:05 -0700</delta_ts>
            <desc>Proposed patch 2.</desc>
            <filename>JavaScriptCore.patch</filename>
            <type>text/plain</type>
            <size>1219</size>
            <attacher name="Hao Zheng">zhenghao</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS93dGYvVGhyZWFkSWRlbnRpZmllckRhdGFQdGhy
ZWFkcy5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PQotLS0gU291cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9UaHJlYWRJ
ZGVudGlmaWVyRGF0YVB0aHJlYWRzLmNwcAkocmV2aXNpb24gOTQyNjQpCisrKyBTb3VyY2UvSmF2
YVNjcmlwdENvcmUvd3RmL1RocmVhZElkZW50aWZpZXJEYXRhUHRocmVhZHMuY3BwCSh3b3JraW5n
IGNvcHkpCkBAIC0zNiw3ICszNiwxMiBAQAogCiAjaW5jbHVkZSAiVGhyZWFkaW5nLmgiCiAKKyNp
ZiBPUyhBTkRST0lEKQorLy8gUFRIUkVBRF9LRVlTX01BWCBpcyBub3QgZGVmaW5lZCBpbiBiaW9u
aWMsIHNvIGV4cGxpY2l0bHkgZGVmaW5lIGl0IGhlcmUuCisjZGVmaW5lIFBUSFJFQURfS0VZU19N
QVggMTAyNAorI2Vsc2UKICNpbmNsdWRlIDxsaW1pdHMuaD4KKyNlbmRpZgogCiBuYW1lc3BhY2Ug
V1RGIHsKIApAQCAtODcsNCArOTIsMyBAQAogfSAvLyBuYW1lc3BhY2UgV1RGCiAKICNlbmRpZiAv
LyBVU0UoUFRIUkVBRFMpCi0KSW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cK
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PQotLS0gU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24g
OTQyNzEpCisrKyBTb3VyY2UvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkp
CkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDgtMzEgIEhhbyBaaGVuZyAgPHpoZW5naGFvQGNocm9t
aXVtLm9yZz4KKworICAgICAgICBEZWZpbmUgUFRIUkVBRF9LRVlTX01BWCB0byBmaXggQW5kcm9p
ZCBwb3J0IGJ1aWxkLgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9NjczNjIKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAg
ICAgICBQVEhSRUFEX0tFWVNfTUFYIGlzIG5vdCBkZWZpbmVkIGluIGJpb25pYywgc28gZXhwbGlj
aXRseSBkZWZpbmUgaXQuCisKKyAgICAgICAgKiB3dGYvVGhyZWFkSWRlbnRpZmllckRhdGFQdGhy
ZWFkcy5jcHA6CisKIDIwMTEtMDgtMzEgIE9saXZlciBIdW50ICA8b2xpdmVyQGFwcGxlLmNvbT4K
IAogICAgICAgICBGaXggYnVpbGQuCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>