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

Issue 512333002: [Android] Mark posted UI thread tasks as asynchronous (Closed)

Created:
6 years, 3 months ago by jdduke (slow)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, K Chandrasekhar Omkar, Sami
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Android] Mark posted UI thread tasks as asynchronous Chromium shares a message loop with Android on the browser UI thread. This can cause problems when the associated Looper has a sync barrier, preventing posted Chromium tasks from being dispatched until the barrier is removed. Make this sharing more fair by marking all Chromium Message tasks as asynchronous, avoiding stalls when there is a sync barrier. Note: This change is for gathering data about the perf impact and we'll revert it before cutting a release branch. BUG=407149, 380781, 407133 Committed: https://crrev.com/feabeebb3ac5810f896ac8303a77ee695acaf9d4 Cr-Commit-Position: refs/heads/master@{#292551}

Patch Set 1 #

Patch Set 2 : Compile... #

Patch Set 3 : Comment #

Total comments: 6

Patch Set 4 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -2 lines) Patch
M base/android/java/src/org/chromium/base/SystemMessageHandler.java View 1 2 3 4 chunks +49 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jdduke (slow)
jdduke@chromium.org changed reviewers: + aelias@chromium.org, epenner@chromium.org, sievers@chromium.org
6 years, 3 months ago (2014-08-28 17:57:31 UTC) #1
jdduke (slow)
There may be some side effects here, but they better be pretty nasty for us ...
6 years, 3 months ago (2014-08-28 17:57:31 UTC) #2
Sami
skyostil@chromium.org changed reviewers: + skyostil@chromium.org
6 years, 3 months ago (2014-08-28 18:01:50 UTC) #3
Sami
Are async messages processed out of order w.r.t. sync messages? I'm wondering if this could ...
6 years, 3 months ago (2014-08-28 18:01:50 UTC) #4
no sievers
On 2014/08/28 18:01:50, Sami wrote: > Are async messages processed out of order w.r.t. sync ...
6 years, 3 months ago (2014-08-28 18:14:05 UTC) #5
no sievers
On 2014/08/28 18:14:05, sievers wrote: > On 2014/08/28 18:01:50, Sami wrote: > > Are async ...
6 years, 3 months ago (2014-08-28 18:16:11 UTC) #6
jdduke (slow)
jdduke@chromium.org changed reviewers: + nyquist@chromium.org
6 years, 3 months ago (2014-08-28 22:07:10 UTC) #7
jdduke (slow)
nyquist: PTAL for owner review. We'd like to land this for a few days and ...
6 years, 3 months ago (2014-08-28 22:07:11 UTC) #8
nyquist
rubberstamp lgtm https://codereview.chromium.org/512333002/diff/40001/base/android/java/src/org/chromium/base/SystemMessageHandler.java File base/android/java/src/org/chromium/base/SystemMessageHandler.java (right): https://codereview.chromium.org/512333002/diff/40001/base/android/java/src/org/chromium/base/SystemMessageHandler.java#newcode42 base/android/java/src/org/chromium/base/SystemMessageHandler.java:42: } catch (Exception e) { Why is ...
6 years, 3 months ago (2014-08-28 23:27:27 UTC) #9
jdduke (slow)
Thanks for review. https://codereview.chromium.org/512333002/diff/40001/base/android/java/src/org/chromium/base/SystemMessageHandler.java File base/android/java/src/org/chromium/base/SystemMessageHandler.java (right): https://codereview.chromium.org/512333002/diff/40001/base/android/java/src/org/chromium/base/SystemMessageHandler.java#newcode42 base/android/java/src/org/chromium/base/SystemMessageHandler.java:42: } catch (Exception e) { On ...
6 years, 3 months ago (2014-08-28 23:37:03 UTC) #10
jdduke (slow)
https://codereview.chromium.org/512333002/diff/40001/base/android/java/src/org/chromium/base/SystemMessageHandler.java File base/android/java/src/org/chromium/base/SystemMessageHandler.java (right): https://codereview.chromium.org/512333002/diff/40001/base/android/java/src/org/chromium/base/SystemMessageHandler.java#newcode42 base/android/java/src/org/chromium/base/SystemMessageHandler.java:42: } catch (Exception e) { On 2014/08/28 23:37:03, jdduke ...
6 years, 3 months ago (2014-08-28 23:54:41 UTC) #11
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 3 months ago (2014-08-28 23:55:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/512333002/60001
6 years, 3 months ago (2014-08-28 23:56:12 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-29 01:17:07 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 6a100f5a90bf045a4508c9d5df0af6cca0aa2084
6 years, 3 months ago (2014-08-29 02:14:13 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/feabeebb3ac5810f896ac8303a77ee695acaf9d4 Cr-Commit-Position: refs/heads/master@{#292551}
6 years, 3 months ago (2014-09-10 03:05:25 UTC) #16
jdduke (slow)
6 years, 3 months ago (2014-09-15 18:28:31 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/564373005/ by jdduke@chromium.org.

The reason for reverting is: This patch was purely experimental, and the
experiment has expired..

Powered by Google App Engine
This is Rietveld 408576698