Bug 20124 - memory leak
Summary: memory leak
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Minor
Assignee: Nobody
URL: n/a
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-07-21 03:28 PDT by bugzilla33
Modified: 2009-04-07 15:40 PDT (History)
1 user (show)

See Also:


Attachments
memory leak (490 bytes, text/html)
2008-07-21 03:29 PDT, bugzilla33
no flags Details
screenshot (71.42 KB, image/png)
2008-07-21 12:34 PDT, bugzilla33
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla33 2008-07-21 03:28:50 PDT
Memory leak<br><br>

1. Run with IE 7, FF 3 or Opera 9.5<br>
   Constant browser memory usage<br><br>

2. Run with Safari 4 (526.12.2) (windows xp sp3)<br>
   Browser memory usage increase very fast (proportional to time)<br>

<script>

 x=[]
 z=100000;while(z--)x.push([])

 function run(){
  var a,b,c,d,e,f,g,h,n
  n=5000;while(n--){
   a=[]
   b=[]
   c=[]
   d=[]
   e=[]
   f=[]
   g=[]
   h=[]
  }
  setTimeout(function(){run()},0)
 }

 run()

</script>
Comment 1 bugzilla33 2008-07-21 03:29:58 PDT
Created attachment 22400 [details]
memory leak
Comment 2 Mark Rowe (bdash) 2008-07-21 10:46:46 PDT
I cannot reproduce this with a recent build on the Mac.
Comment 3 bugzilla33 2008-07-21 12:34:51 PDT
Created attachment 22414 [details]
screenshot

look at the screenshot
Comment 4 Geoffrey Garen 2008-07-21 16:08:43 PDT
Lena was able to reproduce this with a recent build on Windows:

working set -               35, 400K  to 1,997,992K
private working set -  20, 300LK to 1,982,344K

Looks like the problem is Windows-only.
Comment 5 Geoffrey Garen 2008-07-21 16:09:31 PDT
<rdar://problem/6091604>
Comment 6 Sam Weinig 2009-04-07 15:40:31 PDT
This is fixed in ToT.