[Webkit-unassigned] [Bug 17047] New: Out of Memory Error with .split("")
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 28 12:31:15 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=17047
Summary: Out of Memory Error with .split("")
Product: WebKit
Version: 525+ (Nightly build)
Platform: Macintosh
URL: http://ejohn.org/files/bugs/split/
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jresig at mozilla.com
I've been hitting some weird Out of Memory errors in the latest nightly builds
of WebKit, see the attached URL for an example. It only occurs with .split("")
and a mix of closures and intervals. Full script below:
var str = "", ret, fn = [];
for ( var i = 0; i < 16384; i++ )
str += "a";
for ( var i = 16384; i <= 131072; i *= 2 ) (function(i){
fn.push(function(){
ret = str.split("");
});
str += str;
})();
window.onload = function(){
setInterval(function(){
if ( fn.length )
fn.shift()();
}, 13);
};
--
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