Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9d72f25 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix for race condition when clearing compaction list" into tm-dev am: 11a44a2c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17062709

Change-Id: I4ff2dcbaae2dde3dc00542e398b01503b789b203
parents d20e3737 11a44a2c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1056,7 +1056,9 @@ public final class CachedAppOptimizer {
        if(wakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE) {
            // Remove any pending compaction we may have scheduled to happen while screen was off
            Slog.e(TAG_AM, "Cancel pending or running compactions as system is awake");
            synchronized(mProcLock) {
                mPendingCompactionProcesses.clear();
            }
            cancelCompaction();
        }
    }