<?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>9880</bug_id>
          
          <creation_ts>2006-07-12 11:45:35 -0700</creation_ts>
          <short_desc>Memory leaks running DOM-Hanoi</short_desc>
          <delta_ts>2006-07-13 08:49:04 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://metasploit.com/users/hdm/tools/domhanoi/domhanoi.html</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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Alexey Proskuryakov">ap</assigned_to>
          <cc>darin</cc>
    
    <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49476</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-12 11:45:35 -0700</bug_when>
    <thetext>Technically, these are not leaks, but the effect is similar :)

When running certain non-stop browser tests, such as DOM-Hanoi (see bug URL), Safari memory usage grows fast, because Obj-C autoreleased objects do not get a chance to be collected. I suspect they may fill the address space before the test actually finishes, but I was not patient enough to stand the paging.

All such allocations are made inside FrameMac::setStatusBarText(), so I gave this method an autorelease pool of its own.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49477</commentid>
    <comment_count>1</comment_count>
      <attachid>9409</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-12 11:47:22 -0700</bug_when>
    <thetext>Created attachment 9409
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49501</commentid>
    <comment_count>2</comment_count>
      <attachid>9409</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-07-12 14:25:31 -0700</bug_when>
    <thetext>Comment on attachment 9409
proposed patch

Looks good. r=me

But are there any other calls besides &quot;set status bar text&quot; that need an autorelease pool for the same reason?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49558</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-12 21:17:21 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; But are there any other calls besides &quot;set status bar text&quot; that need an
&gt; autorelease pool for the same reason?

This patch fixes all DOM-Hanoi &quot;leaks&quot;. Perhaps, other tests will uncover more?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49560</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-07-12 21:23:17 -0700</bug_when>
    <thetext>Darin, should this patch be committed now, or should it wait until after the stabilization period?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49566</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-07-12 21:43:40 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Darin, should this patch be committed now, or should it wait until after the
&gt; stabilization period?

I think it&apos;s good to land this now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49665</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-13 08:49:04 -0700</bug_when>
    <thetext>Committed revision 15405.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9409</attachid>
            <date>2006-07-12 11:47:22 -0700</date>
            <delta_ts>2006-07-12 14:25:31 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>9880r1_patch.txt</filename>
            <type>text/plain</type>
            <size>766</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvYnJpZGdlL21hYy9GcmFtZU1hYy5tbQo9PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJD
b3JlL2JyaWRnZS9tYWMvRnJhbWVNYWMubW0JKHJldmlzaW9uIDE1MzkzKQorKysgV2ViQ29yZS9i
cmlkZ2UvbWFjL0ZyYW1lTWFjLm1tCSh3b3JraW5nIGNvcHkpCkBAIC02MTAsOSArNjEwLDE1IEBA
IHZvaWQgRnJhbWVNYWM6OnNldFN0YXR1c0JhclRleHQoY29uc3QgU3QKICAgICBTdHJpbmcgdGV4
dCA9IHN0YXR1czsKICAgICB0ZXh0LnJlcGxhY2UoJ1xcJywgYmFja3NsYXNoQXNDdXJyZW5jeVN5
bWJvbCgpKTsKICAgICAKKyAgICAvLyBXZSB3YW50IHRoZSB0ZW1wb3JhcmllcyBhbGxvY2F0ZWQg
aGVyZSB0byBiZSByZWxlYXNlZCBldmVuIGJlZm9yZSByZXR1cm5pbmcgdG8gdGhlIAorICAgIC8v
IGV2ZW50IGxvb3A7IHNlZSA8aHR0cDovL2J1Z3ppbGxhLm9wZW5kYXJ3aW4ub3JnL3Nob3dfYnVn
LmNnaT9pZD05ODgwPi4KKyAgICBOU0F1dG9yZWxlYXNlUG9vbCogbG9jYWxQb29sID0gW1tOU0F1
dG9yZWxlYXNlUG9vbCBhbGxvY10gaW5pdF07CisKICAgICBCRUdJTl9CTE9DS19PQkpDX0VYQ0VQ
VElPTlM7CiAgICAgW19icmlkZ2Ugc2V0U3RhdHVzVGV4dDp0ZXh0XTsKICAgICBFTkRfQkxPQ0tf
T0JKQ19FWENFUFRJT05TOworCisgICAgW2xvY2FsUG9vbCByZWxlYXNlXTsKIH0KIAogdm9pZCBG
cmFtZU1hYzo6c2NoZWR1bGVDbG9zZSgpCg==
</data>
<flag name="review"
          id="2859"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>