[Webkit-unassigned] [Bug 16201] New: Memory usage increases when a javascript including huge array runs
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 30 02:18:59 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=16201
Summary: Memory usage increases when a javascript including huge
array runs
Product: WebKit
Version: 525+ (Nightly build)
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: gyuque at gmail.com
CC: gyuque at gmail.com
When a javascript program has a huge array, JavascriptCore allocates a large
amount of memory blocks while script is running. This problem occurs even
though the script doesn't touch the array.
test cases:
http://svn.coderepos.org/share/lang/javascript/junk/safari-memory-test/test.html
http://svn.coderepos.org/share/lang/javascript/junk/safari-memory-test/test2.html
In test2.html, the content of the array is commented out and this problem won't
occur.
These are results on my computer:
OS: Windows XP Professional SP2
CPU: Pentium4 3.2GHz
RAM: 2GB
---------------------------------------
test.html
(browser) (at start) -> (at end)
IE7 33252KB -> 33240KB ( -12KB )
Firefox 2.0.0.9 27156KB -> 27800KB ( +644KB )
Opera 9.24 27214KB -> 27204KB ( -10KB )
Safari(wk r28220) 51452KB -> 70800KB (+19348KB!)
---------------------------------------
test2.html
(browser) (at start) -> (at end)
IE7 31564KB -> 31884KB
Firefox 2.0.0.9 25348KB -> 25812KB
Opera 9.24 26264KB -> 26236KB
Safari(wk r28220) 49052KB -> 49132KB
---------------------------------------
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list