<?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>89622</bug_id>
          
          <creation_ts>2012-06-20 17:31:56 -0700</creation_ts>
          <short_desc>http://bigsword.sinaapp.com/game.html uses way too much memory</short_desc>
          <delta_ts>2017-07-18 08:27: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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://bigsword.sinaapp.com/game.html</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="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Filip Pizlo">fpizlo</assigned_to>
          <cc>eric</cc>
    
    <cc>horky</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>yong.li.webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>654048</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-06-20 17:31:56 -0700</bug_when>
    <thetext>We should investigate if there is some bug in JSC that is causing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>654053</commentid>
    <comment_count>1</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-06-20 17:32:51 -0700</bug_when>
    <thetext>From webkit-dev:

&quot;Chrome only needs about 180MB to load the page, but Safari needs almost 450MB and FireFox needs about 380MB. I only can check the memory usage with the developer tool in Chrome. So that&apos;s hard to know which statement resumed so huge memory in Safari &amp; FireFox.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>654054</commentid>
    <comment_count>2</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-06-20 17:33:39 -0700</bug_when>
    <thetext>&lt;rdar://problem/11714835&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>654058</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-06-20 17:37:35 -0700</bug_when>
    <thetext>REGION TYPE                        VIRTUAL
===========                        =======
CG image                              264K
CG shared images                     1216K
CoreAnimation                          12K
CoreServices                         1376K
IOKit                                16.0M
JS JIT generated code               256.0M
JS JIT generated code (reserved)    768.0M        reserved VM address space (unallocated)
JS VM register file                  4096K
JS garbage collector                 34.6M
MALLOC                              625.0M        see MALLOC ZONE table below
MALLOC freed, no zone                13.3M
MALLOC guard page                      48K
MALLOC metadata                       540K
Memory tag=242                         12K
Memory tag=251                         36K
TC malloc                            6272K
VM_ALLOCATE                          16.1M
WebCore purgeable data               2132K
mapped file                         125.4M
shared memory                        11.3M



                                            VIRTUAL ALLOCATION      BYTES
MALLOC ZONE                                    SIZE      COUNT  ALLOCATED  % FULL
===========                                 =======  =========  =========  ======
JavaScriptCore FastMalloc_0x7fff7d8b8148     534.1M    2863601     307.6M     57%
DefaultMallocZone_0x10b033000                 41.1M      42615      9643K     22%
GFXMallocZone_0x10b038000                     36.0M       1599       830K      2%
DefaultPurgeableMallocZone_0x14e46f000        9192K          6      9188K     99%
DispatchContinuations_0x10b036000             4096K         21       1312      0%
CoreGraphics_0x7f882b816600                    792K      12011       444K     56%
QuartzCore_0x7f882d801800                       60K        820        49K     81%
x-alloc_0x7f882d839400                          12K         16        672      5%
===========                                 =======  =========  =========  ======
TOTAL                                        625.0M    2920689     327.3M     52%</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>654059</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-06-20 17:38:38 -0700</bug_when>
    <thetext>Zone JavaScriptCore FastMalloc_0x7fff7d8b8148: 2863601 nodes (322546544 bytes) 

    COUNT     BYTES       AVG   CLASS_NAME                                       TYPE    BINARY
    =====     =====       ===   ==========                                       ====    ======
  2862467 321862128     112.4   non-object                                                                 
      159    488448    3072.0   JSC::FunctionCodeBlock                           C++     JavaScriptCore    
      117      3744      32.0   WebCore::Pair                                    C++     WebCore           
      109      2616      24.0   WebKit::WebString                                C++     WebKit2           
       68     56576     832.0   WebCore::CachedImage                             C++     WebCore           
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>654264</commentid>
    <comment_count>5</comment_count>
    <who name="Horky">horky</who>
    <bug_when>2012-06-20 22:59:12 -0700</bug_when>
    <thetext>Similar phenomena can be found with below website too:
  http://jawsjs.com/jawsjs/examples/example12.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>