Merge "Fixed a property naming mismatch."
This commit is contained in:
committed by
Android (Google) Code Review
commit
4b58630ef2
@@ -649,11 +649,13 @@ public class ZygoteProcess {
|
||||
Boolean.parseBoolean(USAP_POOL_ENABLED_DEFAULT));
|
||||
}
|
||||
|
||||
if (origVal != mUsapPoolEnabled) {
|
||||
boolean valueChanged = origVal != mUsapPoolEnabled;
|
||||
|
||||
if (valueChanged) {
|
||||
Log.i(LOG_TAG, "usapPoolEnabled = " + mUsapPoolEnabled);
|
||||
}
|
||||
|
||||
return origVal != mUsapPoolEnabled;
|
||||
return valueChanged;
|
||||
}
|
||||
|
||||
private boolean mIsFirstPropCheck = true;
|
||||
|
||||
@@ -24,14 +24,14 @@ package com.android.internal.os;
|
||||
public class ZygoteConfig {
|
||||
|
||||
/** If {@code true}, enables the unspecialized app process (USAP) pool feature */
|
||||
public static final String USAP_POOL_ENABLED = "blastula_pool_enabled";
|
||||
public static final String USAP_POOL_ENABLED = "usap_pool_enabled";
|
||||
|
||||
/** The threshold used to determine if the pool should be refilled */
|
||||
public static final String USAP_POOL_REFILL_THRESHOLD = "blastula_refill_threshold";
|
||||
public static final String USAP_POOL_REFILL_THRESHOLD = "usap_refill_threshold";
|
||||
|
||||
/** The maximum number of processes to keep in the USAP pool */
|
||||
public static final String USAP_POOL_SIZE_MAX = "blastula_pool_size_max";
|
||||
public static final String USAP_POOL_SIZE_MAX = "usap_pool_size_max";
|
||||
|
||||
/** The minimum number of processes to keep in the USAP pool */
|
||||
public static final String USAP_POOL_SIZE_MIN = "blastula_pool_size_min";
|
||||
public static final String USAP_POOL_SIZE_MIN = "usap_pool_size_min";
|
||||
}
|
||||
|
||||
@@ -353,6 +353,8 @@ class ZygoteServer {
|
||||
return null;
|
||||
}
|
||||
|
||||
Log.i(TAG, "USAP Pool status change: " + (newStatus ? "ENABLED" : "DISABLED"));
|
||||
|
||||
mUsapPoolEnabled = newStatus;
|
||||
|
||||
if (newStatus) {
|
||||
|
||||
Reference in New Issue
Block a user