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

Issue 2498033002: Media element: avoid v8 allocations in hasPendingActivity(). (Closed)

Created:
4 years, 1 month ago by sof
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media element: avoid v8 allocations in hasPendingActivity(). Blink code is not allowed to allocate objects on the v8 heap while its GC calls out to hasPendingActivity(); re-entrancy is not supported. Hence, disable 'officialPlaybackPosition' updates while in hasPendingActivity(), as that will trigger v8 allocations by way of microtask allocations. R=haraken BUG= Committed: https://crrev.com/9bf523214cd8788632afb7d20abdb15123ddbc10 Cr-Commit-Position: refs/heads/master@{#432453}

Patch Set 1 #

Total comments: 2

Patch Set 2 : don't roll our own, use AutoReset<> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
sof
please take a look. while peeking at the bots, happened upon https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Win7__dbg_/8088/layout-test-results/media/media-play-promise-crash-log.txt Purely functional predicate ...
4 years, 1 month ago (2016-11-14 18:45:21 UTC) #4
mlamouri (slow - plz ping)
4 years, 1 month ago (2016-11-14 19:28:30 UTC) #6
sof
+haraken
4 years, 1 month ago (2016-11-16 06:24:28 UTC) #11
haraken
LGTM https://codereview.chromium.org/2498033002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2498033002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode3481 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:3481: DisablePlaybackPositionUpdateScope scope( Can we use AutoReset?
4 years, 1 month ago (2016-11-16 06:47:26 UTC) #12
sof
https://codereview.chromium.org/2498033002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2498033002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode3481 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:3481: DisablePlaybackPositionUpdateScope scope( On 2016/11/16 06:47:26, haraken wrote: > > ...
4 years, 1 month ago (2016-11-16 08:11:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2498033002/20001
4 years, 1 month ago (2016-11-16 10:02:04 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-16 10:06:02 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 10:08:46 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9bf523214cd8788632afb7d20abdb15123ddbc10
Cr-Commit-Position: refs/heads/master@{#432453}

Powered by Google App Engine
This is Rietveld 408576698