ZygoteInit: remove extra copy of method DO NOT MERGE ANYWHERE
The method warmUpJcaProviders arrived here from both nyc-dev and aosp/master, removing duplication. Change-Id: I2d91ee38fe93f600bec89651416e84ab83ef9d4a
This commit is contained in:
@@ -240,24 +240,6 @@ public class ZygoteInit {
|
|||||||
Trace.traceEnd(Trace.TRACE_TAG_DALVIK);
|
Trace.traceEnd(Trace.TRACE_TAG_DALVIK);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Warm up the providers that are already registered.
|
|
||||||
*
|
|
||||||
* By doing it here we avoid that each app does it when requesting a service from the
|
|
||||||
* provider for the first time.
|
|
||||||
*/
|
|
||||||
private static void warmUpJcaProviders() {
|
|
||||||
long startTime = SystemClock.uptimeMillis();
|
|
||||||
Trace.traceBegin(
|
|
||||||
Trace.TRACE_TAG_DALVIK, "Starting warm up of JCA providers");
|
|
||||||
for (Provider p : Security.getProviders()) {
|
|
||||||
p.warmUpServiceProvision();
|
|
||||||
}
|
|
||||||
Log.i(TAG, "Warmed up JCA providers in "
|
|
||||||
+ (SystemClock.uptimeMillis()-startTime) + "ms.");
|
|
||||||
Trace.traceEnd(Trace.TRACE_TAG_DALVIK);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs Zygote process initialization. Loads and initializes
|
* Performs Zygote process initialization. Loads and initializes
|
||||||
* commonly used classes.
|
* commonly used classes.
|
||||||
|
|||||||
Reference in New Issue
Block a user