Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Issue 1149293003: Oilpan: eagerly sweep some mediasource and mediastream objects. (Closed)

Created:
5 years, 7 months ago by sof
Modified:
5 years, 6 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews, feature-media-reviews_chromium.org, tommyw+watchlist_chromium.org, philipj_slow, eric.carlson_apple.com
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: eagerly sweep some mediasource and mediastream objects. The following objects provide a 'client' notification interface to bridge objects that they themselves own or refer to: - SourceBuffer (WebSourceBuffer, WebSourceBufferClient) - MediaStream (MediaStreamDescriptor, MediaStreamDescriptorClient) - MediaStreamTrack (MediaStreamSource, MediaStreamSource::Observer) - RTCDTMFSender (WebRTCDTMFSenderHandler, WebRTCDTMFSenderHandlerClient) - RTCDataChannel (WebRTCDataChannelHandler, WebRTCDataChannelHandlerClient) - RTCPeerConnection (WebRTCPeerConnectionHandler, WebRTCPeerConnectionHandlerClient) The name of the bridge object and client given in parens. The bridge objects allow the embedder to notify the 'client'. To make these safe wrt Oilpan lazy sweeping (see associated bug for details on why this is required), add annotations to the class declarations for the objects affected. While some of these objects are ActiveDOMObjects and will in most cases be explicitly stopped as part of detachment, where their overridden stop() methods will in some cases clear out the client (or bridge) object, this is a delicate dependency. Insisting on eager sweeping & finalization makes their embedder detachment safe, regardless. R=haraken BUG=491488 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196469

Patch Set 1 #

Patch Set 2 : Updated to use EAGERLY_FINALIZE() #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -1 line) Patch
M Source/modules/mediasource/SourceBuffer.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/mediastream/MediaStream.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/mediastream/MediaStreamTrack.h View 1 1 chunk +2 lines, -0 lines 2 comments Download
M Source/modules/mediastream/RTCDTMFSender.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/mediastream/RTCDataChannel.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/mediastream/RTCPeerConnection.h View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
sof
please take a look.
5 years, 7 months ago (2015-05-24 06:51:31 UTC) #2
haraken
Ping me once you land the EAGERLY_FINALIZED().
5 years, 7 months ago (2015-05-25 00:20:16 UTC) #3
sof
On 2015/05/25 00:20:16, haraken wrote: > Ping me once you land the EAGERLY_FINALIZED(). Now updated ...
5 years, 6 months ago (2015-06-03 15:14:40 UTC) #4
haraken
LGTM https://codereview.chromium.org/1149293003/diff/20001/Source/modules/mediastream/MediaStreamTrack.h File Source/modules/mediastream/MediaStreamTrack.h (right): https://codereview.chromium.org/1149293003/diff/20001/Source/modules/mediastream/MediaStreamTrack.h#newcode91 Source/modules/mediastream/MediaStreamTrack.h:91: // Oilpan: need to eagerly unregister as observer. ...
5 years, 6 months ago (2015-06-04 01:06:56 UTC) #6
sof
https://codereview.chromium.org/1149293003/diff/20001/Source/modules/mediastream/MediaStreamTrack.h File Source/modules/mediastream/MediaStreamTrack.h (right): https://codereview.chromium.org/1149293003/diff/20001/Source/modules/mediastream/MediaStreamTrack.h#newcode91 Source/modules/mediastream/MediaStreamTrack.h:91: // Oilpan: need to eagerly unregister as observer. On ...
5 years, 6 months ago (2015-06-04 06:18:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149293003/20001
5 years, 6 months ago (2015-06-04 06:18:34 UTC) #9
commit-bot: I haz the power
5 years, 6 months ago (2015-06-04 06:59:28 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196469

Powered by Google App Engine
This is Rietveld 408576698