<?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>72089</bug_id>
          
          <creation_ts>2011-11-10 21:50:59 -0800</creation_ts>
          <short_desc>JSString forgets to clear m_fibers when resolving ropes</short_desc>
          <delta_ts>2011-11-10 22:40:15 -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="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ggaren</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>500515</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-10 21:50:59 -0800</bug_when>
    <thetext>This can cause some pathological memory usage.  Patch on the way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>500516</commentid>
    <comment_count>1</comment_count>
      <attachid>114626</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-10 21:52:07 -0800</bug_when>
    <thetext>Created attachment 114626
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>500518</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-11-10 22:01:41 -0800</bug_when>
    <thetext>Attachment 114626 did not pass style-queue:

Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;Source/JavaScriptCore/ChangeLog&apos;, u&apos;Source...&quot; exit_code: 1

Source/JavaScriptCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>500520</commentid>
    <comment_count>3</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2011-11-10 22:07:00 -0800</bug_when>
    <thetext>Might be good to merge your new comment with the comment above, which (now) incorrectly ASSERTs that using a Vector is OK because the string will mark its fibers -- really, using a Vector is only OK because GC just won&apos;t happen.

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>500521</commentid>
    <comment_count>4</comment_count>
      <attachid>114626</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2011-11-10 22:08:03 -0800</bug_when>
    <thetext>Comment on attachment 114626
the patch

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

&gt; Source/JavaScriptCore/runtime/JSString.cpp:109
&gt; +        // Clearing here works only because there are no GC points in this method.

Might be good to merge this with the comment above, which ASSERTs that using a Vector is OK -- really, using a Vector is only OK because GC just won&apos;t happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>500524</commentid>
    <comment_count>5</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-10 22:11:06 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 114626 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=114626&amp;action=review
&gt; 
&gt; &gt; Source/JavaScriptCore/runtime/JSString.cpp:109
&gt; &gt; +        // Clearing here works only because there are no GC points in this method.
&gt; 
&gt; Might be good to merge this with the comment above, which ASSERTs that using a Vector is OK -- really, using a Vector is only OK because GC just won&apos;t happen.

Oh, heh, didn&apos;t even notice that comment.  I&apos;ve gone for two comments, one to say that it&apos;s OK to put them into the Vector (because there are no GC points) and another to say that it&apos;s OK to clear m_fibers (because there are no GC points).  Figure that minimizes the chances of someone getting the wrong ideas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>500533</commentid>
    <comment_count>6</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-11-10 22:40:15 -0800</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/99927</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>114626</attachid>
            <date>2011-11-10 21:52:07 -0800</date>
            <delta_ts>2011-11-10 22:08:03 -0800</delta_ts>
            <desc>the patch</desc>
            <filename>fixstring_patch_1.diff</filename>
            <type>text/plain</type>
            <size>1488</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gOTk5MjUpCisrKyBTb3VyY2Uv
SmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAK
KzIwMTEtMTEtMTAgIEZpbGlwIFBpemxvICA8ZnBpemxvQGFwcGxlLmNvbT4KKworICAgICAgICBO
ZWVkIGEgc2hvcnQgZGVzY3JpcHRpb24gYW5kIGJ1ZyBVUkwgKE9PUFMhKQorCisgICAgICAgIFJl
dmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogcnVudGltZS9KU1N0cmluZy5j
cHA6CisgICAg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tpXTsgKytpKSB7CiAgICAgICAgIHdvcmtRdWV1ZS5hcHBl
bmQobV9maWJlcnNbaV0uZ2V0KCkpOworICAgICAgICAvLyBDbGVhcmluZyBoZXJlIHdvcmtzIG9u
bHkgYmVjYXVzZSB0aGVyZSBhcmUgbm8gR0MgcG9pbnRzIGluIHRoaXMgbWV0aG9kLgorICAgICAg
ICBtX2ZpYmVyc1tpXS5jbGVhcigpOworICAgIH0KIAogICAgIHdoaWxlICghd29ya1F1ZXVlLmlz
RW1wdHkoKSkgewogICAgICAgICBKU1N0cmluZyogY3VycmVudEZpYmVyID0gd29ya1F1ZXVlLmxh
c3QoKTsK
</data>
<flag name="review"
          id="113331"
          type_id="1"
          status="+"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>