Merge "Fix negative freezer timeout" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-05-11 21:46:41 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -838,7 +838,7 @@ public final class CachedAppOptimizer {
KEY_FREEZER_DEBOUNCE_TIMEOUT, DEFAULT_FREEZER_DEBOUNCE_TIMEOUT);
if (mFreezerDebounceTimeout < 0) {
mFullDeltaRssThrottleKb = DEFAULT_FREEZER_DEBOUNCE_TIMEOUT;
mFreezerDebounceTimeout = DEFAULT_FREEZER_DEBOUNCE_TIMEOUT;
}
}

View File

@@ -171,7 +171,7 @@ final class ProcessCachedOptimizerRecord {
return mFreezeExempt;
}
@GuardedBy("mPreLock")
@GuardedBy("mProcLock")
void setFreezeExempt(boolean exempt) {
mFreezeExempt = exempt;
}