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
This commit is contained in:
@@ -373,7 +373,7 @@ class StorageManagerService extends IStorageManager.Stub
|
|||||||
private volatile boolean mChargingRequired;
|
private volatile boolean mChargingRequired;
|
||||||
private volatile int mMinGCSleepTime;
|
private volatile int mMinGCSleepTime;
|
||||||
private volatile int mTargetDirtyRatio;
|
private volatile int mTargetDirtyRatio;
|
||||||
private volatile boolean mNeedGC;
|
private volatile boolean mNeedGC = true;
|
||||||
|
|
||||||
private volatile boolean mPassedLifetimeThresh;
|
private volatile boolean mPassedLifetimeThresh;
|
||||||
// Tracking storage write amounts in one period
|
// Tracking storage write amounts in one period
|
||||||
|
|||||||
Reference in New Issue
Block a user