<?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>110519</bug_id>
          
          <creation_ts>2013-02-21 15:09:44 -0800</creation_ts>
          <short_desc>Object allocation profiling will refuse to create objects with more than JSFinalObject::maxInlineCapacity() inline slots, but JSFunction::allocationProfile() asserts that the number of inline slots is always what it asked for</short_desc>
          <delta_ts>2013-02-21 16:57:48 -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="Filip Pizlo">fpizlo</assigned_to>
          <cc>barraclough</cc>
    
    <cc>ggaren</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>838884</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-02-21 15:09:44 -0800</bug_when>
    <thetext>Basically, JSFunction is asserting that the object allocation profiling doesn&apos;t have the max-out feature.  But it does have that feature, for good reason.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838888</commentid>
    <comment_count>1</comment_count>
      <attachid>189608</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-02-21 15:10:55 -0800</bug_when>
    <thetext>Created attachment 189608
tbhe patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838891</commentid>
    <comment_count>2</comment_count>
      <attachid>189608</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2013-02-21 15:13:12 -0800</bug_when>
    <thetext>Comment on attachment 189608
tbhe patch

r=me

Would be nice to rename the argument to inferredInlineCapacity, too. The convention is that &quot;inlineCapacity&quot; means the real number, and not the guess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838937</commentid>
    <comment_count>3</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-02-21 15:43:36 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 189608 [details])
&gt; r=me
&gt; 
&gt; Would be nice to rename the argument to inferredInlineCapacity, too. The convention is that &quot;inlineCapacity&quot; means the real number, and not the guess.

I&apos;ll leave that for later.

Also, there&apos;s no good test for this.  The key thing is that the JSFunction must survive but the CodeBlock must be blown away.  Otherwise we never take that path in JSFunction::allocationProfile().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>839028</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2013-02-21 16:57:48 -0800</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/143667</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>189608</attachid>
            <date>2013-02-21 15:10:55 -0800</date>
            <delta_ts>2013-02-21 15:13:12 -0800</delta_ts>
            <desc>tbhe patch</desc>
            <filename>blah.patch</filename>
            <type>text/plain</type>
            <size>1455</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09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NlS2luZCwgYW5kIEFycmF5TW9kZQpJbmRleDogU291cmNlL0phdmFTY3Jp
cHRDb3JlL3J1bnRpbWUvSlNGdW5jdGlvbi5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9KYXZhU2Ny
aXB0Q29yZS9ydW50aW1lL0pTRnVuY3Rpb24uaAkocmV2aXNpb24gMTQzNjUxKQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL3J1bnRpbWUvSlNGdW5jdGlvbi5oCSh3b3JraW5nIGNvcHkpCkBAIC0x
MzYsNyArMTM2LDYgQEAgbmFtZXNwYWNlIEpTQyB7CiAgICAgICAgIHsKICAgICAgICAgICAgIGlm
IChVTkxJS0VMWShtX2FsbG9jYXRpb25Qcm9maWxlLmlzTnVsbCgpKSkKICAgICAgICAgICAgICAg
ICByZXR1cm4gY3JlYXRlQWxsb2NhdGlvblByb2ZpbGUoZXhlYywgaW5saW5lQ2FwYWNpdHkpOwot
ICAgICAgICAgICAgQVNTRVJUKGlubGluZUNhcGFjaXR5IDw9IG1fYWxsb2NhdGlvblByb2ZpbGUu
c3RydWN0dXJlKCktPmlubGluZUNhcGFjaXR5KCkpOwogICAgICAgICAgICAgcmV0dXJuICZtX2Fs
bG9jYXRpb25Qcm9maWxlOwogICAgICAgICB9CiAK
</data>
<flag name="review"
          id="210086"
          type_id="1"
          status="+"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>