Reland: Move the Once cache for dexpreopt.GlobalConfig into the
dexpreopt package. Preparation for a future CL that will need to get the make-written GlobalConfig from within dexpreopt. Also rename the Load*Config functions to Parse*Config, since they don't actually load the config files anymore. This relands https://r.android.com/1211982. Bug: 145934348 Test: m Change-Id: Icb9332a93811d77d2d8b06e983b92501b180a358
This commit is contained in:
@@ -105,7 +105,7 @@ func DexpreoptedSystemServerJars(config android.Config) *[]string {
|
||||
// order (which is partial and non-deterministic). This pass adds additional dependencies between
|
||||
// jars, making the order total and deterministic. It also constructs a global ordered list.
|
||||
func systemServerJarsDepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
jars := dexpreopt.NonUpdatableSystemServerJars(ctx, dexpreoptGlobalConfig(ctx))
|
||||
jars := dexpreopt.NonUpdatableSystemServerJars(ctx, dexpreopt.GetGlobalConfig(ctx))
|
||||
name := ctx.ModuleName()
|
||||
if android.InList(name, jars) {
|
||||
dexpreoptedSystemServerJarsLock.Lock()
|
||||
|
Reference in New Issue
Block a user