<?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>33393</bug_id>
          
          <creation_ts>2010-01-08 11:53:32 -0800</creation_ts>
          <short_desc>Remove unnecessary #include in FastMalloc.cpp</short_desc>
          <delta_ts>2010-01-08 14:09:50 -0800</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>All</rep_platform>
          <op_sys>All</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yong Li">yong.li.webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>178730</commentid>
    <comment_count>0</comment_count>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2010-01-08 11:53:32 -0800</bug_when>
    <thetext>#if FORCE_SYSTEM_MALLOC

#include &lt;stdlib.h&gt;
#if !OS(WINDOWS)
    #include &lt;pthread.h&gt;
#else
    #include &quot;windows.h&quot;
#endif

Not sure if &lt;stdlib.h&gt; is needed, but &lt;pthread.h&gt; or &quot;windows.h&quot; is definitely unnecessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178735</commentid>
    <comment_count>1</comment_count>
      <attachid>46150</attachid>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2010-01-08 12:01:40 -0800</bug_when>
    <thetext>Created attachment 46150
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178738</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-01-08 12:05:41 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 46150 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178752</commentid>
    <comment_count>3</comment_count>
      <attachid>46150</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-01-08 12:37:39 -0800</bug_when>
    <thetext>Comment on attachment 46150
the patch

OK.  Which platforms use FORCE_SYSTEM_MALLOC at the moment?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178772</commentid>
    <comment_count>4</comment_count>
      <attachid>46150</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-01-08 13:38:37 -0800</bug_when>
    <thetext>Comment on attachment 46150
the patch

It&apos;s clear that the &lt;stdlib.h&gt; include is not needed because FastMalloc.h includes it. There is no use of pthread down here and there is an include of pthread.h above for the case where we need it. But how did you determine the windows.h include was not needed? I&apos;ll take your word for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178779</commentid>
    <comment_count>5</comment_count>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2010-01-08 13:47:28 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 46150 [details])
&gt; It&apos;s clear that the &lt;stdlib.h&gt; include is not needed because FastMalloc.h
&gt; includes it. There is no use of pthread down here and there is an include of
&gt; pthread.h above for the case where we need it. But how did you determine the
&gt; windows.h include was not needed? I&apos;ll take your word for it.

I cannot see any #if OS(WINOS) or something similar inside #ifdef FORCE_SYSTEM_MALLOC block. Also, I successfully made FastMalloc build for win32 with forcing FORCE_SYSTEM_MALLOC=1 :) Will commit it soon and monitor the buildbots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178797</commentid>
    <comment_count>6</comment_count>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2010-01-08 14:09:50 -0800</bug_when>
    <thetext>landed @ r53008

bug closed</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>46150</attachid>
            <date>2010-01-08 12:01:40 -0800</date>
            <delta_ts>2010-01-08 14:10:15 -0800</delta_ts>
            <desc>the patch</desc>
            <filename>33393.patch</filename>
            <type>text/plain</type>
            <size>948</size>
            <attacher name="Yong Li">yong.li.webkit</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZyBiL0phdmFTY3JpcHRDb3JlL0No
YW5nZUxvZwppbmRleCAwMTdjMGRhLi40YjgyZmRkIDEwMDY0NAotLS0gYS9KYXZhU2NyaXB0Q29y
ZS9DaGFuZ2VMb2cKKysrIGIvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTIg
QEAKKzIwMTAtMDEtMDggIFlvbmcgTGkgIDx5b2xpQHJpbS5jb20+CisKKyAgICAgICAgUmV2aWV3
ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgUmVtb3ZlIHVubmVjZXNzYXJ5ICNpbmNs
dWRlIGZyb20gRmFzdE1hbGxvYy5jcHAKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcv
c2hvd19idWcuY2dpP2lkPTMzMzkzCisKKyAgICAgICAgKiB3dGYvRmFzdE1hbGxvYy5jcHA6CisK
IDIwMTAtMDEtMDYgIEdhdmluIEJhcnJhY2xvdWdoICA8YmFycmFjbG91Z2hAYXBwbGUuY29tPgog
CiAgICAgICAgIFFUIGJ1aWxkIGZpeC4KZGlmZiAtLWdpdCBhL0phdmFTY3JpcHRDb3JlL3d0Zi9G
YXN0TWFsbG9jLmNwcCBiL0phdmFTY3JpcHRDb3JlL3d0Zi9GYXN0TWFsbG9jLmNwcAppbmRleCBh
NTYzM2VhLi41Y2Q4NWYzIDEwMDY0NAotLS0gYS9KYXZhU2NyaXB0Q29yZS93dGYvRmFzdE1hbGxv
Yy5jcHAKKysrIGIvSmF2YVNjcmlwdENvcmUvd3RmL0Zhc3RNYWxsb2MuY3BwCkBAIC0xOTEsMTMg
KzE5MSw2IEBAIFRyeU1hbGxvY1JldHVyblZhbHVlIHRyeUZhc3RaZXJvZWRNYWxsb2Moc2l6ZV90
IG4pCiAKICNpZiBGT1JDRV9TWVNURU1fTUFMTE9DCiAKLSNpbmNsdWRlIDxzdGRsaWIuaD4KLSNp
ZiAhT1MoV0lORE9XUykKLSAgICAjaW5jbHVkZSA8cHRocmVhZC5oPgotI2Vsc2UKLSAgICAjaW5j
bHVkZSAid2luZG93cy5oIgotI2VuZGlmCi0KIG5hbWVzcGFjZSBXVEYgewogCiBUcnlNYWxsb2NS
ZXR1cm5WYWx1ZSB0cnlGYXN0TWFsbG9jKHNpemVfdCBuKSAK
</data>
<flag name="review"
          id="28367"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>