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

Commit 9a14e8dc authored by wilsonshih's avatar wilsonshih
Browse files

Exclude TaskSnapshotManager from ActivityThread

This is a temporary solution to fix the increase observed in the
RSS "shared clean" memory section in every forked process.

Bug: 436397802
Flag: com.android.window.flags.reduce_task_snapshot_memory_usage
Test: atest system-processes-memory
Change-Id: Id2a5e5744e36b454940a414933607227e5343ed5
parent 3233ae9e
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -232,7 +232,6 @@ import android.window.SizeConfigurationBuckets;
import android.window.SplashScreen;
import android.window.SplashScreenView;
import android.window.TaskFragmentTransaction;
import android.window.TaskSnapshotManager;
import android.window.WindowContextInfo;
import android.window.WindowProviderService;
import android.window.WindowTokenClientController;
@@ -1916,11 +1915,6 @@ public final class ActivityThread extends ClientTransactionHandler
                pw.print(assetAlloc);
            }

            // Task Snapshot
            if (com.android.window.flags.Flags.reduceTaskSnapshotMemoryUsage()) {
                TaskSnapshotManager.getInstance().dump(pw);
            }

            // Unreachable native memory
            if (dumpUnreachable) {
                boolean showContents = ((mBoundApplication != null)