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

Commit befa98e6 authored by Yasin Kilicdere's avatar Yasin Kilicdere
Browse files

Bound isolated processes to have slightly worse score than the client.

Bug: 322791989
Test: atest FrameworksServicesTests:OomAdjusterTests
Flag: None
Change-Id: Ife0b62a6273069566c5dd809c528dfcfdb5e6f12
parent b2b0c3af
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2746,6 +2746,11 @@ public class OomAdjuster {
                        }
                    }

                    if (newAdj == clientAdj && app.isolated) {
                        // Make bound isolated processes have slightly worse score than their client
                        newAdj = clientAdj + 1;
                    }

                    if (adj >  newAdj) {
                        adj = newAdj;
                        if (state.setCurRawAdj(adj, dryRun)) {