<?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>100437</bug_id>
          
          <creation_ts>2012-10-25 17:16:12 -0700</creation_ts>
          <short_desc>SymbolTableIndexHashTraits::needsDestruction should be set to true</short_desc>
          <delta_ts>2012-10-26 09:21:14 -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>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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Saboff">msaboff</reporter>
          <assigned_to name="Michael Saboff">msaboff</assigned_to>
          <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>751360</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2012-10-25 17:16:12 -0700</bug_when>
    <thetext>Due to the use of allocated rare data (FatEntry&apos;s) in SymbolTableEntry&apos;s, the hash trait needsDestruction should be set to true.  The code is currently working due to the Key trait, HashTraits&lt;RefPtr&lt;StringImpl&gt; &gt; having needsDestruction set true.  If the key or it&apos;s trait is set to false, then this would leak memory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>751362</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2012-10-25 17:17:07 -0700</bug_when>
    <thetext>&lt;rdar://problem/12350394&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>751369</commentid>
    <comment_count>2</comment_count>
      <attachid>170771</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2012-10-25 17:32:34 -0700</bug_when>
    <thetext>Created attachment 170771
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>751374</commentid>
    <comment_count>3</comment_count>
      <attachid>170771</attachid>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2012-10-25 17:36:17 -0700</bug_when>
    <thetext>Comment on attachment 170771
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>751487</commentid>
    <comment_count>4</comment_count>
      <attachid>170771</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-10-25 20:28:45 -0700</bug_when>
    <thetext>Comment on attachment 170771
Patch

Clearing flags on attachment: 170771

Committed r132566: &lt;http://trac.webkit.org/changeset/132566&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>751488</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-10-25 20:28:48 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>752125</commentid>
    <comment_count>6</comment_count>
      <attachid>170771</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2012-10-26 09:21:14 -0700</bug_when>
    <thetext>Comment on attachment 170771
Patch

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

&gt; Source/JavaScriptCore/runtime/SymbolTable.h:340
&gt; -        static const bool needsDestruction = false;
&gt; +        static const bool needsDestruction = true;

A simpler correct fix is to simply remove this line entirely. It is true by default for structs, so no need to explicitly set it to true.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>170771</attachid>
            <date>2012-10-25 17:32:34 -0700</date>
            <delta_ts>2012-10-26 09:21:14 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>100437.patch</filename>
            <type>text/plain</type>
            <size>1510</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTMyNTQ1KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBA
CisyMDEyLTEwLTI1ICBNaWNoYWVsIFNhYm9mZiAgPG1zYWJvZmZAYXBwbGUuY29tPgorCisgICAg
ICAgIFN5bWJvbFRhYmxlSW5kZXhIYXNoVHJhaXRzOjpuZWVkc0Rlc3RydWN0aW9uIHNob3VsZCBi
ZSBzZXQgdG8gdHJ1ZQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9MTAwNDM3CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAg
ICAgICAgRm9yIGNvcnJlY3RuZXNzLCBzZXQgU3ltYm9sVGFibGVJbmRleEhhc2hUcmFpdHM6Om5l
ZWRzRGVzdHJ1Y3Rpb24gdG8gdHJ1ZSBzaW5jZSBTeW1ib2xUYWJsZUVudHJ5J3MgZG8KKyAgICAg
ICAgbmVlZCB0byBoYXZlIHRoZWlyIGRlc3RydWN0b3IgY2FsbGVkIGR1ZSB0byB0aGUgcG9zc2li
aWxpdHkgb2YgcmFyZSBkYXRhLgorCisgICAgICAgICogcnVudGltZS9TeW1ib2xUYWJsZS5oOgor
ICAgICAgICAoU3ltYm9sVGFibGVJbmR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