<?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>144677</bug_id>
          
          <creation_ts>2015-05-06 02:12:05 -0700</creation_ts>
          <short_desc>New stress/new-largeish-contiguous-array-with-size.js fails on 32 bit platforms</short_desc>
          <delta_ts>2015-05-07 11:10:32 -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>144609</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>108645</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>clopez</cc>
    
    <cc>fpizlo</cc>
    
    <cc>mark.lam</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1092117</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-06 02:12:05 -0700</bug_when>
    <thetext>New stress/new-largeish-contiguous-array-with-size.js
introduced in https://trac.webkit.org/changeset/183847
and fails on 32 bit platforms.

It failed once on GTK 32 bit bot:
- https://build.webkit.org/builders/GTK%20Linux%2032-bit%20Release/builds/52461
- stress/new-largeish-contiguous-array-with-size.js.default: Exception: Error: heap too big before forced GC: 108104384

It fails persistently on EFL 32 bit ARM bots since it is introduced:
- stress/new-largeish-contiguous-array-with-size.js.default: Exception: Error: heap too big before forced GC: 119708840
- stress/new-largeish-contiguous-array-with-size.js.default: Exception: Error: heap too big before forced GC: 124108928
- stress/new-largeish-contiguous-array-with-size.js.default: Exception: Error: heap too big before forced GC: 129308808
- stress/new-largeish-contiguous-array-with-size.js.default: Exception: Error: heap too big before forced GC: 120108656
...

Can it be a real bug or a bug in the test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092118</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-05-06 02:13:37 -0700</bug_when>
    <thetext>and the same failure on the GTK ARM bot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092641</commentid>
    <comment_count>2</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2015-05-07 10:52:14 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; New stress/new-largeish-contiguous-array-with-size.js
&gt; introduced in https://trac.webkit.org/changeset/183847
&gt; and fails on 32 bit platforms.
&gt; 
&gt; It failed once on GTK 32 bit bot:
&gt; -
&gt; https://build.webkit.org/builders/GTK%20Linux%2032-bit%20Release/builds/52461
&gt; - stress/new-largeish-contiguous-array-with-size.js.default: Exception:
&gt; Error: heap too big before forced GC: 108104384
&gt; 
&gt; It fails persistently on EFL 32 bit ARM bots since it is introduced:
&gt; - stress/new-largeish-contiguous-array-with-size.js.default: Exception:
&gt; Error: heap too big before forced GC: 119708840
&gt; - stress/new-largeish-contiguous-array-with-size.js.default: Exception:
&gt; Error: heap too big before forced GC: 124108928
&gt; - stress/new-largeish-contiguous-array-with-size.js.default: Exception:
&gt; Error: heap too big before forced GC: 129308808
&gt; - stress/new-largeish-contiguous-array-with-size.js.default: Exception:
&gt; Error: heap too big before forced GC: 120108656
&gt; ...
&gt; 
&gt; Can it be a real bug or a bug in the test?

I think that the test might be wrong.  I was assuming that 100MB is the largest that our minimum heap size would get.  But I&apos;m wrong:

static inline size_t minHeapSize(HeapType heapType, size_t ramSize)
{
    if (heapType == LargeHeap)
        return min(largeHeapSize, ramSize / 4);
    return smallHeapSize;
}

So, if you&apos;re on a machine with tons of heap, we&apos;ll be happy to give you 1/4 RAM headroom.  This actually seems super sketchy anyways and maybe we should fix that - but for now it means that as written, my test is incorrect.

I&apos;ll investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092647</commentid>
    <comment_count>3</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2015-05-07 11:10:21 -0700</bug_when>
    <thetext>I will fix this bug as part of https://bugs.webkit.org/show_bug.cgi?id=144609.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092648</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2015-05-07 11:10:32 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>