diff options
| author | Chris Wailes <chriswailes@google.com> | 2019-01-11 17:13:00 -0800 |
|---|---|---|
| committer | Christian Wailes <chriswailes@google.com> | 2019-01-24 07:17:14 +0000 |
| commit | ba4c2eb189d0e7dccaef01568b864a744070e379 (patch) | |
| tree | 7cb41e422a66faeb9153b716d50fb9f53c530629 /core/java/android/os/Process.java | |
| parent | 070aba8e540928338a893755158a239b8e146bae (diff) | |
Enables the use of the blastula pool.
This commit adds the code necessar to initialize and use the blastula
pool during application launching. Highlights include:
* Modifying ZygoteState to allow the creation of blastula session
sockets
* Modified application startup to track if a web view process is being
created.
* Initialization of the blastula pool during Zygote initialization.
* Blastula lifecycle management via reporting pipes and event FDs.
* Launching of applications via the blastula pool.
The creation, maintenance, and use of the blastula pool can be disabled
by setting Zygote.BLASTULA_POOL_ENABLED to false. When this feature is
disabled applications will launch as they did before this patch.
Topic: zygote-prefork
Test: make & flash & launch app & check log message
Bug: 68253328
Exempt-From-Owner-Approval: No changes to files with owners between revisions
Change-Id: I46c32ad09400591e866b6c6121d5a9b0332092f3
Diffstat (limited to 'core/java/android/os/Process.java')
| -rw-r--r-- | core/java/android/os/Process.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index 07c4933e2e3f..d2ab053eb4e6 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -530,7 +530,7 @@ public class Process { return ZYGOTE_PROCESS.start(processClass, niceName, uid, gid, gids, runtimeFlags, mountExternal, targetSdkVersion, seInfo, abi, instructionSet, appDataDir, invokeWith, packageName, - packagesForUid, visibleVols, zygoteArgs); + packagesForUid, visibleVols, /*useBlastulaPool=*/ true, zygoteArgs); } /** @hide */ @@ -551,7 +551,7 @@ public class Process { return WebViewZygote.getProcess().start(processClass, niceName, uid, gid, gids, runtimeFlags, mountExternal, targetSdkVersion, seInfo, abi, instructionSet, appDataDir, invokeWith, packageName, - packagesForUid, visibleVols, zygoteArgs); + packagesForUid, visibleVols, /*useBlastulaPool=*/ false, zygoteArgs); } /** |
