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: Daeho Jeong <daehojeong@google.com>
Change-Id: I7397ae48efbfc9147b4bec8389141dfad8d53a0b
Merged-In: I7397ae48efbfc9147b4bec8389141dfad8d53a0b
This commit is contained in:
Daeho Jeong
2022-10-12 11:07:24 -07:00
parent b791973deb
commit b1424343df

View File

@@ -381,7 +381,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