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

Issue 1159583002: Eagerly sweep MediaKeySession 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, philipj_slow, eric.carlson_apple.com
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Eagerly sweep MediaKeySession objects. MediaKeySession owns an instance of the WebContentDecryptionModuleSession bridge object, which allows for bidirectional access with the embedder-side object. With Oilpan GC's lazy sweeping in effect, we need to tear down that bridge as soon as the MediaKeySession object has been deemed to be garbage, and slated for sweeping. Otherwise the embedder may attempt to access the MediaKeySession's client interface methods while MediaKeySession is waiting to be lazily swept, and potentially touching other heap objects that MediaKeySession refers to which might have been independently swept and finalized. That is, the GC finalization order isn't fixed and deterministic. With lazy sweeping, that lack of order is observable not just to the objects that are on the heap, but also external, non-heap objects. Like the embedder side object in this case. Arrange for that eager finalization to happen by annotating MediaKeySession as eagerly swept. R=haraken BUG=491488 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196480

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated to use EAGER_FINALIZE() #

Total comments: 2

Patch Set 3 : improve comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -17 lines) Patch
M Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h View 1 chunk +1 line, -4 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeysClient.h View 2 chunks +0 lines, -5 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeysController.h View 2 chunks +4 lines, -2 lines 0 comments Download
M Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/MediaKeysClientImpl.h View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
sof
5 years, 7 months ago (2015-05-23 16:30:14 UTC) #1
sof
please take a look.
5 years, 7 months ago (2015-05-23 16:30:36 UTC) #3
sof
Forgot to include.. encryptedmedia/ has been audited for lazy sweeping issues; this is the only ...
5 years, 7 months ago (2015-05-23 16:33:39 UTC) #4
haraken
Thanks for looking into this! It seems that the underlying issue is that the embedder ...
5 years, 7 months ago (2015-05-23 23:58:37 UTC) #6
sof
On 2015/05/23 23:58:37, haraken wrote: > Thanks for looking into this! > It won't fix ...
5 years, 7 months ago (2015-05-24 05:23:45 UTC) #7
sof
https://codereview.chromium.org/1159583002/diff/1/Source/modules/encryptedmedia/MediaKeysController.h File Source/modules/encryptedmedia/MediaKeysController.h (right): https://codereview.chromium.org/1159583002/diff/1/Source/modules/encryptedmedia/MediaKeysController.h#newcode33 Source/modules/encryptedmedia/MediaKeysController.h:33: // It is not on the Oilpan heap. On ...
5 years, 7 months ago (2015-05-24 05:28:17 UTC) #8
haraken
> But, if we assume it is an integral part of what the GC provides, ...
5 years, 7 months ago (2015-05-24 09:59:00 UTC) #9
haraken
On 2015/05/24 09:59:00, haraken wrote: > > But, if we assume it is an integral ...
5 years, 7 months ago (2015-05-24 10:05:13 UTC) #10
sof
On 2015/05/24 10:05:13, haraken wrote: > On 2015/05/24 09:59:00, haraken wrote: > > > But, ...
5 years, 7 months ago (2015-05-24 11:44:36 UTC) #11
sof
On 2015/05/24 11:44:36, sof wrote: > On 2015/05/24 10:05:13, haraken wrote: > > On 2015/05/24 ...
5 years, 7 months ago (2015-05-24 21:17:43 UTC) #12
haraken
On 2015/05/24 21:17:43, sof wrote: > On 2015/05/24 11:44:36, sof wrote: > > On 2015/05/24 ...
5 years, 7 months ago (2015-05-25 00:16:28 UTC) #13
sof
On 2015/05/25 00:16:28, haraken wrote: > On 2015/05/24 21:17:43, sof wrote: > > On 2015/05/24 ...
5 years, 7 months ago (2015-05-25 06:32:43 UTC) #14
haraken
On 2015/05/25 06:32:43, sof wrote: > On 2015/05/25 00:16:28, haraken wrote: > > On 2015/05/24 ...
5 years, 7 months ago (2015-05-25 08:43:31 UTC) #15
sof
On 2015/05/25 06:32:43, sof wrote: > On 2015/05/25 00:16:28, haraken wrote: > ........................... > > ...
5 years, 7 months ago (2015-05-25 21:11:56 UTC) #16
haraken
On 2015/05/25 21:11:56, sof wrote: > On 2015/05/25 06:32:43, sof wrote: > > On 2015/05/25 ...
5 years, 7 months ago (2015-05-25 23:25:12 UTC) #17
sof
On 2015/05/25 23:25:12, haraken wrote: > On 2015/05/25 21:11:56, sof wrote: > > On 2015/05/25 ...
5 years, 6 months ago (2015-06-03 15:30:24 UTC) #18
haraken
LGTM https://codereview.chromium.org/1159583002/diff/20001/Source/modules/encryptedmedia/MediaKeySession.h File Source/modules/encryptedmedia/MediaKeySession.h (right): https://codereview.chromium.org/1159583002/diff/20001/Source/modules/encryptedmedia/MediaKeySession.h#newcode92 Source/modules/encryptedmedia/MediaKeySession.h:92: // Oilpan: eagerly release owned m_session. It would ...
5 years, 6 months ago (2015-06-04 00:49:12 UTC) #19
sof
https://codereview.chromium.org/1159583002/diff/20001/Source/modules/encryptedmedia/MediaKeySession.h File Source/modules/encryptedmedia/MediaKeySession.h (right): https://codereview.chromium.org/1159583002/diff/20001/Source/modules/encryptedmedia/MediaKeySession.h#newcode92 Source/modules/encryptedmedia/MediaKeySession.h:92: // Oilpan: eagerly release owned m_session. On 2015/06/04 00:49:12, ...
5 years, 6 months ago (2015-06-04 06:07:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159583002/40001
5 years, 6 months ago (2015-06-04 06:07:44 UTC) #23
commit-bot: I haz the power
5 years, 6 months ago (2015-06-04 08:25:57 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196480

Powered by Google App Engine
This is Rietveld 408576698