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

Commit 9790b2b3 authored by Shai Barack's avatar Shai Barack
Browse files

Disable concurrent MQ in SysUI

Address reports of barrier message leak.
Will undo this once we ship the upcoming DeliQueue algorithm.

Bug: 436941592
Bug: 436942235
Flag: build.RELEASE_PACKAGE_MESSAGEQUEUE_IMPLEMENTATION
Change-Id: I4185eefaa5ceab337ddf3a476770ed863d0ef751
parent 6f932682
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -203,16 +203,6 @@ public final class MessageQueue {
            }
        }

        // Also explicitly allow SystemUI processes.
        // SystemUI doesn't run in a core UID, but we want to give it the performance boost,
        // and we know that it's safe to use the concurrent implementation in SystemUI.
        if (processName.equals("com.android.systemui")
                || processName.startsWith("com.android.systemui:")) {
            return true;
        }
        // On Android distributions where SystemUI has a different process name,
        // the above condition may need to be adjusted accordingly.

        // We can lift these restrictions in the future after we've made it possible for test
        // authors to test Looper and MessageQueue without resorting to reflection.
        return false;
+4 −0
Original line number Diff line number Diff line
@@ -9971,6 +9971,10 @@
            android:name="com.android.server.patch.25239169"
            android:value="true" />
        <meta-data
            android:name="com.android.server.patch.34957421"
            android:value="true" />
    </application>
</manifest>