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

Commit 58a4c3ba authored by Edgar Arriaga's avatar Edgar Arriaga Committed by Edgar Arriaga García
Browse files

Fix for race condition when clearing compaction list

Bug: 221256472
Test: Manual

Change-Id: Id187052048d0087202b9eed4b16267706f49373c
parent aafb696b
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();
        }
    }