Chromium Code Reviews
Descriptionandroid: Post stop/onServiceDisconnected to launcher
From native, stop used to be called on both the client (UI/IO) thread
and on launcher thread, depending only which ChildProcessLauncher
method client calls. Now post both to launcher thread.
onServiceDisconnected to launcher thread as well. onServiceDisconnected
also calls stop, so these two changes are bundled together.
This allows all synchronization to be removed from Allocator since
everything is accessed on the Launcher thread only. But once again,
tests needed to be fixed here as well.
Note onServiceConnected is unchanged because it has some interaction
with the warm up connection.
Potential risks:
I think delaying native calls are fine. stop was always asynchronous
anyway. There is a bit of a risk delaying onServiceDisconnected because
dropping bindings will prevent android from restarting the service on
our behalf. I think we just have to swallow this latency and one day
unify everything to run on the launcher thread.
Of course there could be other unforeseen issues.
BUG=689758
Review-Url: https://codereview.chromium.org/2821583002
Cr-Commit-Position: refs/heads/master@{#465139}
Committed: https://chromium.googlesource.com/chromium/src/+/da4f4f98353bc5fd8f88300721260355bb994b3b
Patch Set 1 #Patch Set 2 : remove alloctor synchronization #Patch Set 3 : rebase #Dependent Patchsets: Messages
Total messages: 18 (13 generated)
|