<?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>122352</bug_id>
          
          <creation_ts>2013-10-04 15:03:44 -0700</creation_ts>
          <short_desc>[Win] Turn off FastMalloc on Windows</short_desc>
          <delta_ts>2015-07-30 21:00:23 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>benjamin</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ggaren</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>ossy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>936386</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-10-04 15:03:44 -0700</bug_when>
    <thetext>There are a number of test crashes on the Windows platform that seem to be caused by the FastMalloc implementation. As one would expect, these are tied to mismatched new/free pairs, and seem to be related to the visibility of the FastMalloc overloads in template expansions, and perhaps when data is allocated and deallocated across shared library boundaries.

If I force use of the system allocator, these crashes go away.

I cannot measure the performance penalty this might introduce, because we do not currently track Windows performance. However, there does not seem to be a noticeable change in using the MiniBrowser with the system allocator activated. Perhaps I am not using test cases that create/destroy enough memory for this to be noticeable.

I would like to do the following:

1. Turn off FastMalloc on the Windows platform.
2. Reactivate the various tests that currently fail due to issues with the allocator.
3. Get a performance bot running
4. Port ggaren’s new allocator to run on Windows, but only use it if we see no change in stability.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936434</commentid>
    <comment_count>1</comment_count>
      <attachid>213420</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-10-04 17:06:37 -0700</bug_when>
    <thetext>Created attachment 213420
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936454</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-10-04 17:33:55 -0700</bug_when>
    <thetext>Committed r156933: &lt;http://trac.webkit.org/changeset/156933&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>943686</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-10-25 11:51:57 -0700</bug_when>
    <thetext>&lt;rdar://problem/15321791&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1068896</commentid>
    <comment_count>4</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-02-13 06:14:28 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; There are a number of test crashes on the Windows platform that seem to be
&gt; caused by the FastMalloc implementation. As one would expect, these are tied
&gt; to mismatched new/free pairs, and seem to be related to the visibility of
&gt; the FastMalloc overloads in template expansions, and perhaps when data is
&gt; allocated and deallocated across shared library boundaries.
&gt; 
&gt; If I force use of the system allocator, these crashes go away.
&gt; 
&gt; I cannot measure the performance penalty this might introduce, because we do
&gt; not currently track Windows performance. However, there does not seem to be
&gt; a noticeable change in using the MiniBrowser with the system allocator
&gt; activated. Perhaps I am not using test cases that create/destroy enough
&gt; memory for this to be noticeable.
&gt; 
&gt; I would like to do the following:
&gt; 
&gt; 1. Turn off FastMalloc on the Windows platform.
&gt; 2. Reactivate the various tests that currently fail due to issues with the
&gt; allocator.
&gt; 3. Get a performance bot running
&gt; 4. Port ggaren’s new allocator to run on Windows, but only use it if we see
&gt; no change in stability.

Is there any plan to switch the Windows port to bmalloc too in the near future?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>213420</attachid>
            <date>2013-10-04 17:06:37 -0700</date>
            <delta_ts>2013-10-04 17:15:15 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-122352-20131004170636.patch</filename>
            <type>text/plain</type>
            <size>958</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XVEYvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XVEYvQ2hh
bmdlTG9nCShyZXZpc2lvbiAxNTY5MjkpCisrKyBTb3VyY2UvV1RGL0NoYW5nZUxvZwkod29ya2lu
ZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDEzLTEwLTA0ICBCcmVudCBGdWxnaGFtICA8YmZ1
bGdoYW1AYXBwbGUuY29tPgorCisgICAgICAgIFtXaW5dIFR1cm4gb2ZmIEZhc3RNYWxsb2Mgb24g
V2luZG93cworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9
MTIyMzUyCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAg
KiB3dGYvUGxhdGZvcm0uaDogRW5hYmxlIFVTRV9TWVNURU1fTUFMTE9DIHdoZW4gYnVpbGRpbmcg
b24KKyAgICAgICAgV2luZG93cyB0byBzdGljayB0byB0aGUgTVNWQ1JUIGFsbG9jYXRvci9kZWFs
bG9jYXRvci4KKwogMjAxMy0xMC0wNCAgT2xpdmVyIEh1bnQgIDxvbGl2ZXJAYXBwbGUuY29tPgog
CiAgICAgICAgIFN1cHBvcnQgZm9yLW9mIHN5bnRheApJbmRleDogU291cmNlL1dURi93dGYvUGxh
dGZvcm0uaAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV1RGL3d0Zi9QbGF0Zm9ybS5oCShyZXZpc2lv
biAxNTY5MTcpCisrKyBTb3VyY2UvV1RGL3d0Zi9QbGF0Zm9ybS5oCSh3b3JraW5nIGNvcHkpCkBA
IC02NTcsNiArNjU3LDcgQEAKIAogI2lmIE9TKFdJTkRPV1MpCiAjZGVmaW5lIEVOQUJMRV9HTE9C
QUxfRkFTVE1BTExPQ19ORVcgMAorI2RlZmluZSBVU0VfU1lTVEVNX01BTExPQyAxCiAjZW5kaWYK
IAogI2lmICFkZWZpbmVkKEVOQUJMRV9HTE9CQUxfRkFTVE1BTExPQ19ORVcpCg==
</data>
<flag name="review"
          id="235779"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>