W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2014

Re: [Bug 25724] New: Allow garbage collection of closed PeerConnections

From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 16 May 2014 07:00:40 -0700
Message-ID: <CABkgnnV4Jc7mxFwa0_RXYmCQQWkVdraDtE=Ofiw-8dJrwuqPtA@mail.gmail.com>
To: Harald Alvestrand <harald@alvestrand.no>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
On 16 May 2014 00:24, Harald Alvestrand <harald@alvestrand.no> wrote:
> Once a PeerConnection has close() called, all tracks sourced by it should
> end. We'd better write that down somewhere too; it's not in the close()
> description now.

I think that's right.  Tracks don't reference the PC, but the
implication from this response is that they do hold a strong
reference.  That is, since the <video>/<audio> would also hold a
strong reference to the track via the stream, the logical way for the
media element to hold the PC alive is if there is a transitive
reference via the track.

That leads me to ask whether an ended track needs to drop its
reference to its source.  I think that the answer can be yes, which
allows for more aggressive GC, but I might have missed something.
Received on Friday, 16 May 2014 14:01:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:17:58 UTC