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

Skip to content
Commit cd8f5d8b authored by Tomislav Novak's avatar Tomislav Novak
Browse files

Ignore BIND_ABOVE_CLIENT for same-process connections



Binding to a service using BIND_ABOVE_CLIENT affects the OOM adjustment
of both the client and the service; client's value is dropped by one
level in modifyRawOomAdj() to make sure it's lower than the service's.

Doing this unconditionally, however, means that the process' OOM score
will be reduced if binding to a service that lives in the same process
as the client. For example, a top app would have its oom_score_adj set
to 100 (visible) rather than 0 (foreground).

Test: atest MockingOomAdjusterTests
Signed-off-by: default avatarTomislav Novak <tnovak@meta.com>
Merged-In: Iee5024b8f13771bc98a39a20e5f96a89a4c79b4e
Change-Id: Iee5024b8f13771bc98a39a20e5f96a89a4c79b4e
parent f315172a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment