Skip to content
Commit ce8db89c authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Garfield Tan
Browse files

Fixed thread leak in OomAdjuster during tests

OomAdjuster creates a thread in its ctor which is okay during normal
operation since we only call the ctor once. However, during tests it is
called per test setup, so we end up with a memory leak due to the
continuous creation of the thread.
We fix this by passing in the handler thread we use during testing into
the ctor since there is no need for a separate thread.

Test: presubmit
Bug: 137879065
Change-Id: Ia5664b3a4aa433a9fd55b714cc2a556c4e1b4eaa
parent 60ca0dbe
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