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

Issue 1193383002: Oilpan: have media element prefinalizer handle all finalization. (Closed)

Created:
5 years, 6 months ago by sof
Modified:
5 years, 6 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews, nessy, mlamouri+watch-blink_chromium.org, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-html_chromium.org, vcarbune.chromium
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: have media element prefinalizer handle all finalization. It is unsafe to access a to-be-finalized object, which is a possibility for media elements with lazy sweeping enabled. The access in that case being made by the embedder media player updating and notifying the media element. Prevent that from happening by promptly/eagerly releasing the player object. With prefinalizers now being able to allocate, extend r197339 and finalize the media player and perform the other Oilpan finalization steps during media element prefinalization. R=haraken BUG=502863 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197628

Patch Set 1 #

Total comments: 3

Patch Set 2 : move conditional closing of MediaSource to media elt prefinalizer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -69 lines) Patch
M Source/core/html/HTMLMediaElement.h View 1 2 chunks +0 lines, -14 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 6 chunks +28 lines, -40 lines 0 comments Download
M Source/modules/mediasource/MediaSource.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/mediasource/MediaSource.cpp View 1 1 chunk +1 line, -14 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
sof
please take a look.
5 years, 6 months ago (2015-06-22 13:05:03 UTC) #2
haraken
https://codereview.chromium.org/1193383002/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1193383002/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode460 Source/core/html/HTMLMediaElement.cpp:460: if (m_closeMediaSourceWhenFinalizing) Maybe can we remove m_closeMediaSourceWhenFinalizing? I guess ...
5 years, 6 months ago (2015-06-22 13:25:40 UTC) #4
sof
https://codereview.chromium.org/1193383002/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1193383002/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode460 Source/core/html/HTMLMediaElement.cpp:460: if (m_closeMediaSourceWhenFinalizing) On 2015/06/22 13:25:40, haraken wrote: > > ...
5 years, 6 months ago (2015-06-22 13:31:56 UTC) #5
haraken
https://codereview.chromium.org/1193383002/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1193383002/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode460 Source/core/html/HTMLMediaElement.cpp:460: if (m_closeMediaSourceWhenFinalizing) On 2015/06/22 13:31:56, sof wrote: > On ...
5 years, 6 months ago (2015-06-22 13:43:36 UTC) #6
sof
On 2015/06/22 13:43:36, haraken wrote: > https://codereview.chromium.org/1193383002/diff/1/Source/core/html/HTMLMediaElement.cpp > File Source/core/html/HTMLMediaElement.cpp (right): > > https://codereview.chromium.org/1193383002/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode460 > ...
5 years, 6 months ago (2015-06-22 13:53:31 UTC) #7
haraken
On 2015/06/22 13:53:31, sof wrote: > On 2015/06/22 13:43:36, haraken wrote: > > > https://codereview.chromium.org/1193383002/diff/1/Source/core/html/HTMLMediaElement.cpp ...
5 years, 6 months ago (2015-06-22 14:10:53 UTC) #8
sof
On 2015/06/22 14:10:53, haraken wrote: > On 2015/06/22 13:53:31, sof wrote: > > On 2015/06/22 ...
5 years, 6 months ago (2015-06-22 14:18:24 UTC) #9
haraken
On 2015/06/22 14:18:24, sof wrote: > On 2015/06/22 14:10:53, haraken wrote: > > On 2015/06/22 ...
5 years, 6 months ago (2015-06-22 14:19:48 UTC) #10
sof
On 2015/06/22 14:19:48, haraken wrote: > On 2015/06/22 14:18:24, sof wrote: > > On 2015/06/22 ...
5 years, 6 months ago (2015-06-22 15:03:35 UTC) #11
haraken
On 2015/06/22 15:03:35, sof wrote: > On 2015/06/22 14:19:48, haraken wrote: > > On 2015/06/22 ...
5 years, 6 months ago (2015-06-22 15:14:48 UTC) #12
sof
Have looked through the results; noisier than wanted, but have triangulated with other builds on ...
5 years, 6 months ago (2015-06-23 06:12:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1193383002/20001
5 years, 6 months ago (2015-06-23 06:12:55 UTC) #15
commit-bot: I haz the power
5 years, 6 months ago (2015-06-23 06:16:36 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197628

Powered by Google App Engine
This is Rietveld 408576698