Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
b5a69ab7
Commit
b5a69ab7
authored
6 years ago
by
Mathieu Chartier
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add use_app_image_startup_cache feature flag"
parents
21b38267
f5cd8c16
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/java/com/android/internal/os/Zygote.java
+5
-0
5 additions, 0 deletions
core/java/com/android/internal/os/Zygote.java
core/java/com/android/internal/os/ZygoteInit.java
+10
-0
10 additions, 0 deletions
core/java/com/android/internal/os/ZygoteInit.java
with
15 additions
and
0 deletions
core/java/com/android/internal/os/Zygote.java
+
5
−
0
View file @
b5a69ab7
...
...
@@ -93,6 +93,11 @@ public final class Zygote {
*/
public
static
final
int
PROFILE_SYSTEM_SERVER
=
1
<<
14
;
/*
* Enable using the ART app image startup cache
*/
public
static
final
int
USE_APP_IMAGE_STARTUP_CACHE
=
1
<<
16
;
/** No external storage should be mounted. */
public
static
final
int
MOUNT_EXTERNAL_NONE
=
IVold
.
REMOUNT_MODE_NONE
;
/** Default external storage should be mounted. */
...
...
This diff is collapsed.
Click to expand it.
core/java/com/android/internal/os/ZygoteInit.java
+
10
−
0
View file @
b5a69ab7
...
...
@@ -41,6 +41,7 @@ import android.system.OsConstants;
import
android.system.StructCapUserData
;
import
android.system.StructCapUserHeader
;
import
android.text.Hyphenator
;
import
android.text.TextUtils
;
import
android.util.EventLog
;
import
android.util.Log
;
import
android.util.Slog
;
...
...
@@ -84,6 +85,8 @@ public class ZygoteInit {
private
static
final
String
PROPERTY_DISABLE_OPENGL_PRELOADING
=
"ro.zygote.disable_gl_preload"
;
private
static
final
String
PROPERTY_GFX_DRIVER
=
"ro.gfx.driver.0"
;
private
static
final
String
PROPERTY_USE_APP_IMAGE_STARTUP_CACHE
=
"persist.device_config.runtime_native.use_app_image_startup_cache"
;
private
static
final
int
LOG_BOOT_PROGRESS_PRELOAD_START
=
3020
;
private
static
final
int
LOG_BOOT_PROGRESS_PRELOAD_END
=
3030
;
...
...
@@ -705,6 +708,13 @@ public class ZygoteInit {
parsedArgs
.
mRuntimeFlags
|=
Zygote
.
PROFILE_SYSTEM_SERVER
;
}
String
use_app_image_cache
=
SystemProperties
.
get
(
PROPERTY_USE_APP_IMAGE_STARTUP_CACHE
,
""
);
// Property defaults to true currently.
if
(!
TextUtils
.
isEmpty
(
use_app_image_cache
)
&&
!
use_app_image_cache
.
equals
(
"false"
))
{
parsedArgs
.
mRuntimeFlags
|=
Zygote
.
USE_APP_IMAGE_STARTUP_CACHE
;
}
/* Request to fork the system server process */
pid
=
Zygote
.
forkSystemServer
(
parsedArgs
.
mUid
,
parsedArgs
.
mGid
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment