[Webkit-unassigned] [Bug 114824] New: Garbage Collection of Typed Arrays Fails
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 18 13:07:32 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=114824
Summary: Garbage Collection of Typed Arrays Fails
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.8
Status: UNCONFIRMED
Severity: Major
Priority: P3
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: amit at zooniverse.org
Created an attachment (id=198755)
--> (https://bugs.webkit.org/attachment.cgi?id=198755&action=review)
Example of typed array initialization and failure of garbage collector.
Steps to reproduce the problem:
1. Define a function that initializes a typed array.
2. Execute the function.
3. Observe the typed array not being garbage collected when falling out of scope.
The garbage collector should release memory from all variables defined in the function closure. Memory associated with the typed array is not released at any point during the life cycle of the web app. Memory is not released on tab close, but only on application close.
Additionally, allocating a typed array seems to consume more memory than it should. For example,
var arr = new Float32Array(268435456);
allocates 1 gigabyte for array storage; however, WebKit consumes ~4 GB.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list