<?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>86437</bug_id>
          
          <creation_ts>2012-05-14 21:56:01 -0700</creation_ts>
          <short_desc>CodeBlock::RareData() wastes a lot of vector capacity</short_desc>
          <delta_ts>2012-05-15 13:44:33 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>86436</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>86281</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>623635</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-05-14 21:56:01 -0700</bug_when>
    <thetext>Data collected via bug 86281 show that a lot of vector capacity is wasted via the Vectors allocated here:

2232 vectors, 0.31KB used of 558.00KB, 557.69KB wasted at:
1   0x106979f55 WTF::Vector&lt;JSC::InlineCallFrame, 4ul&gt;::Vector()
2   0x106979625 WTF::Vector&lt;JSC::InlineCallFrame, 4ul&gt;::Vector()
3   0x1069795c4 WTF::SegmentedVector&lt;JSC::InlineCallFrame, 4ul&gt;::SegmentedVector()
4   0x106979465 WTF::SegmentedVector&lt;JSC::InlineCallFrame, 4ul&gt;::SegmentedVector()
5   0x106979319 JSC::CodeBlock::RareData::RareData()

2232 vectors, 17.44KB used of 558.00KB, 540.56KB wasted at:
1   0x106979e45 WTF::Vector&lt;WTF::Vector&lt;JSC::InlineCallFrame, 4ul&gt;*, 32ul&gt;::Vector()
2   0x106979645 WTF::Vector&lt;WTF::Vector&lt;JSC::InlineCallFrame, 4ul&gt;*, 32ul&gt;::Vector()
3   0x1069795d6 WTF::SegmentedVector&lt;JSC::InlineCallFrame, 4ul&gt;::SegmentedVector()
4   0x106979465 WTF::SegmentedVector&lt;JSC::InlineCallFrame, 4ul&gt;::SegmentedVector()
5   0x106979319 JSC::CodeBlock::RareData::RareData()

2232 vectors, 66.41KB used of 310.97KB, 244.56KB wasted at:
1   0x10697a185 WTF::Vector&lt;JSC::LineInfo, 0ul&gt;::Vector()
2   0x106979425 WTF::Vector&lt;JSC::LineInfo, 0ul&gt;::Vector()
3   0x1069792f9 JSC::CodeBlock::RareData::RareData()
4   0x106975bd5 JSC::CodeBlock::RareData::RareData()
5   0x106974214 JSC::CodeBlock::createRareDataIfNecessary()

2232 vectors, 486.60KB used of 692.79KB, 206.19KB wasted at:
1   0x10697a285 WTF::Vector&lt;JSC::ExpressionRangeInfo, 0ul&gt;::Vector()
2   0x106979405 WTF::Vector&lt;JSC::ExpressionRangeInfo, 0ul&gt;::Vector()
3   0x1069792e9 JSC::CodeBlock::RareData::RareData()
4   0x106975bd5 JSC::CodeBlock::RareData::RareData()
5   0x106974214 JSC::CodeBlock::createRareDataIfNecessary()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>624507</commentid>
    <comment_count>1</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-05-15 13:44:33 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 86436 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>