diff options
author | Wale Ogunwale <ogunwale@google.com> | 2019-07-19 08:25:33 -0700 |
---|---|---|
committer | Garfield Tan <xutan@google.com> | 2019-07-22 14:14:08 -0700 |
commit | ce8db89ce529343262f7f4c669dd2d8976afcff6 (patch) | |
tree | 625487ba30a8d2a2c78107a4aa566a7e1ebe97df /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 60ca0dbefb5240d3dab2461b086b57bb96be3e40 (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions