New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 714657 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: May 2017
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

In BasseChildProcessConnection.java, remove the lock.

Project Member Reported by jcivelli@chromium.org, Apr 24 2017

Issue description

In BasseChildProcessConnection.java, mLock is not required anymore now that calls happen on the launcher thread.
It should be removed.
 
Also we should cleanup ManagedChildProcessConnection.


Project Member

Comment 2 by bugdroid1@chromium.org, Apr 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/93637728a91bf34e608f0c281febaf06af44fe30

commit 93637728a91bf34e608f0c281febaf06af44fe30
Author: jcivelli <jcivelli@chromium.org>
Date: Fri Apr 28 05:18:33 2017

Making ChildProcessConnection only accessed from the launcher thread.

As a result, removing locks and synchronizations.
Also changing the way we store and report the OOM protected state.
We now update the OOM protected state every time it changes as long as we
are bound (that happens only on the launcher thread).
When retrieving that OOM protected state (which happens on the IO
thread), we return that state directly without the need of a lock.

BUG= 714657 

Review-Url: https://codereview.chromium.org/2840303002
Cr-Commit-Position: refs/heads/master@{#467892}

[modify] https://crrev.com/93637728a91bf34e608f0c281febaf06af44fe30/content/public/android/java/src/org/chromium/content/browser/BaseChildProcessConnection.java
[modify] https://crrev.com/93637728a91bf34e608f0c281febaf06af44fe30/content/public/android/java/src/org/chromium/content/browser/ManagedChildProcessConnection.java
[modify] https://crrev.com/93637728a91bf34e608f0c281febaf06af44fe30/content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java
[modify] https://crrev.com/93637728a91bf34e608f0c281febaf06af44fe30/content/shell/android/BUILD.gn
[modify] https://crrev.com/93637728a91bf34e608f0c281febaf06af44fe30/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ChildProcessLauncherTestHelperService.java
[add] https://crrev.com/93637728a91bf34e608f0c281febaf06af44fe30/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ChildProcessLauncherTestUtils.java

Status: Fixed (was: Untriaged)

Sign in to add a comment