[Webkit-unassigned] [Bug 62292] Worker object may be garbage collected even if it has message handlers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 8 11:18:18 PDT 2011


--- Comment #2 from Alexey Proskuryakov <ap at webkit.org>  2011-06-08 11:18:18 PST ---
In your example, the worker object will be GC protected because there is an outstanding message. Once it's handled and acknowledged, and we also know that it hasn't triggered a timer or XHR inside the worker thread, it should be fine to collect the worker, because we know that it can't possibly be messaged again from either side.

Having handlers always GC protect the object would make it extremely likely to leak.

So, this is correct behavior. Do you have an example where the implementation doesn't match the design that I described above?

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