[Webkit-unassigned] [Bug 22308] New: Improve Worker GC behavior

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 17 06:18:08 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22308

           Summary: Improve Worker GC behavior
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ap at webkit.org


Here is what Firefox beta does, and what I suggest that we do as well.

Worker object is GC protected if:
- there is JS executing in its thread,
- there are pending messages in any direction, or
- there is an active object in worker thread, such as a timer, async XHR etc.

A particular feature of this approach is that workers that have made a
setInterval() call, or just run a tight loop, will not be collected until their
owner is destroyed, even if there is no way left for them to communicate in
either direction. This can be seen as a problem leading to likely resource
leakage, or as a feature.

There will also be a terminate() call to manually shut down a worker, which
Firefox doesn't currently provide.


-- 
Configure bugmail: https://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