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

Commit 4303b8c4 authored by Daeho Jeong's avatar Daeho Jeong
Browse files

initialize mNeedGC



Need to initialize mNeedGC as true to ensure that GC is turned on for
the old idle maintenance service.

Bug: 181079477
Bug: 253187285
Test: run "sm idle-maint run" & check whether GC is triggered
Signed-off-by: default avatarDaeho Jeong <daehojeong@google.com>
Change-Id: I7397ae48efbfc9147b4bec8389141dfad8d53a0b
parent 97db2423
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -373,7 +373,7 @@ class StorageManagerService extends IStorageManager.Stub
    private volatile boolean mChargingRequired;
    private volatile int mMinGCSleepTime;
    private volatile int mTargetDirtyRatio;
    private volatile boolean mNeedGC;
    private volatile boolean mNeedGC = true;

    private volatile boolean mPassedLifetimeThresh;
    // Tracking storage write amounts in one period