commit | 1f8455d42f4d57970c1be9cbaa161c35f99ad89d | [log] [tgz] |
---|---|---|
author | Brett Chabot <brettchabot@google.com> | Fri Mar 13 15:17:08 2020 -0700 |
committer | Brett Chabot <brettchabot@google.com> | Fri Mar 13 15:37:35 2020 -0700 |
tree | 6b02633757a15b665e6af1880ed72af3b372aea5 | |
parent | a8375cc9f85380254d18ae48b59e8954c0b7886e [diff] |
Fix race condition in OomAdjuster. OomAdjuster accesses the not-thread-safe HandlerThread.getThreadId from outside the thread. Modify so it posts a message to thread instead. See bug 22476742 Bug: 151407445 Test: See repro instructions in bug Change-Id: Iae03d46896561f0442af6595a8d0bdf617ccd61e