Skip to content
Commit 64f88fa1 authored by Jing Ji's avatar Jing Ji
Browse files

Handle the potential recursions within updateOomAdj

Some code paths within the updateOomAdj* would potentially call into
the updateOomAdj* again and result in undefined behavior. This CL
adds the handling for it - in case of recursion is encountered,
the oomAdj update request will be enqueued, and at the end of the
current pass of updateOomAdj*, we'll do another updateOomAdj* to
handle those requests.

Bug: 167773591
Bug: 162476856
Test: atest CtsAppTestCases
Test: atest MockingOomAdjusterTests
Change-Id: I4788ba12f06744204c68382b399216f232059138
parent e3ff87dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment