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

Commit 11a44a2c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix for race condition when clearing compaction list" into tm-dev

parents bbdc07f3 58a4c3ba
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -1056,7 +1056,9 @@ public final class CachedAppOptimizer {
        if(wakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE) {
        if(wakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE) {
            // Remove any pending compaction we may have scheduled to happen while screen was off
            // 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");
            Slog.e(TAG_AM, "Cancel pending or running compactions as system is awake");
            synchronized(mProcLock) {
                mPendingCompactionProcesses.clear();
                mPendingCompactionProcesses.clear();
            }
            cancelCompaction();
            cancelCompaction();
        }
        }
    }
    }