New issue
Advanced search Search tips

Issue 765656 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocked on:
issue 766131

Blocking:
issue 760938
issue 797876



Sign in to add a comment

Impossible to garbage collect RTCPeerConnection

Project Member Reported by hbos@chromium.org, Sep 15 2017

Issue description

This should destroy the RTCPeerConnection but it doesn't:

  let pc = new RTCPeerConnection();
  pc.close();
  pc = null;
  gc();

This has something to do with dispatch_scheduled_event_runner_ and/or its Timer keeping a reference to the PC alive in this async task being added.

Keeping RTCPeerConnections alive could waste a lot of resources.
 

Comment 1 by hbos@chromium.org, Sep 18 2017

Blockedon: 766131

Comment 2 by hbos@chromium.org, Sep 18 2017

This is blocking writing a unittest for a fix of https://crbug.com/760938

Comment 3 by hbos@chromium.org, Sep 18 2017

Blocking: 760938

Comment 4 by hbos@chromium.org, Sep 18 2017

The bug lies within the AsyncMethodRunner, see "Blocked on" bug.

Comment 5 by hbos@chromium.org, Dec 28 2017

Blocking: 797876

Sign in to add a comment